com.apamax.containers
Event HeapStringComparator


A comparator for a heap containing strings.
Member summary
 booleanincreasing

True for a min-heap, false for a max-heap.
 
Action summary
 integercompare(any a, any b)

Compare two strings.
 
Member detail

increasing

boolean increasing
True for a min-heap, false for a max-heap.
Action detail

compare

integer compare(any a, any b)
Compare two strings.
Parameters:
a - The first string to compare.
b - The second string to compare.
Returns:
Positive if increasing and a > b, or not increasing and a < b, 0 if equal and negative otherwise.