Interface SList.OnCompareDataFunc

Enclosing class:
SList
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 SList.OnCompareDataFunc
  • Method Details

    • onCompareDataFunc

      int onCompareDataFunc(CallbackHandler __self, @Nullable Pointer a, @Nullable Pointer b, @Nullable Pointer user_data)
      Specifies the type of a comparison function used to compare two
      values. The function should return a negative integer if the first
      value comes before the second, 0 if they are equal, or a positive
      integer if the first value comes after the second.
      Parameters:
      a - a value
      b - a value to compare with
      user_data - user data
      Returns:
      negative value if @a < @b; zero if @a = @b; positive value if @a > @b