Package ch.bailu.gtk.glib
Interface Array.OnCompareFunc
- Enclosing class:
- Array
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionint
onCompareFunc
(CallbackHandler __self, Pointer a, Pointer b) Specifies the type of a comparison function used to compare two
values.
-
Method Details
-
onCompareFunc
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 valueb
- a value to compare with- Returns:
- negative value if @a < @b; zero if @a = @b; positive value if @a > @b
-