Search this API

y.util
Interface Comparators.PartialOrder

All Known Implementing Classes:
NodeOrderComparator, SwimLaneDescriptor, XCoordComparator
Enclosing class:
Comparators

public static interface Comparators.PartialOrder

Tag interface to mark Comparator or comparable implementations that do not define a total order but only a partial order. Implementations tagged with this interface use a special sorting algorithm that is behavior-compatible with the pre-Java-7 sorting algorithms in the sense that it does not throw IllegalArgumentException if the specified Comparator used for sorting does not define a total order.

See Also:
Comparators.sort(Object[], java.util.Comparator), Comparators.sort(java.util.List, java.util.Comparator), Comparators.sort(Object[], int, int, java.util.Comparator)
 


© Copyright 2000-2017,
yWorks GmbH.
All rights reserved.