java.lang.Object
org.apache.jena.atlas.data.AbortableComparator<E>
- All Implemented Interfaces:
Comparator<E>
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
AbandonSort
is the exception thrown fromAbortableComparator
to abandon a sort.static enum
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabortableSort
(E[] e) Sort the arraye
using this comparator with the additional ability to abort the sort.void
cancel()
Arrange that the next on-frequency cancellation test in compare will succeed, aborting the sort.int
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
AbortableComparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<E>
-
abortableSort
Sort the arraye
using this comparator with the additional ability to abort the sort. -
cancel
public void cancel()Arrange that the next on-frequency cancellation test in compare will succeed, aborting the sort.
-