java.lang.Object
org.apache.jena.atlas.data.AbortableComparator<E>
- All Implemented Interfaces:
Comparator<E>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAbandonSortis the exception thrown fromAbortableComparatorto abandon a sort.static enum -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabortableSort(E[] e) Sort the arrayeusing this comparator with the additional ability to abort the sort.voidcancel()Arrange that the next on-frequency cancellation test in compare will succeed, aborting the sort.intMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
AbortableComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<E>
-
abortableSort
Sort the arrayeusing 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.
-