Interface Object.OnDuplicateFunc

Enclosing class:
Object
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface Object.OnDuplicateFunc
  • Method Details

    • onDuplicateFunc

      Pointer onDuplicateFunc(CallbackHandler __self, @Nullable Pointer data, @Nullable Pointer user_data)
      The type of functions that are used to 'duplicate' an object.
      What this means depends on the context, it could just be
      incrementing the reference count, if @data is a ref-counted
      object.
      Parameters:
      data - the data to duplicate
      user_data - user data that was specified in g_datalist_id_dup_data()
      Returns:
      a duplicate of data