Interface ElementComparator
-
- All Superinterfaces:
Comparator<Element>
- All Known Implementing Classes:
ElementPropertyComparator
public interface ElementComparator extends Comparator<Element>
Base interface describingElement
Comparator
instances.Implementations should be JSON serialiseable
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default Set<Pair<String,String>>
getComparableGroupPropertyPairs()
This should return a set all properties that the comparator requires to be of type Comparable.-
Methods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
getComparableGroupPropertyPairs
default Set<Pair<String,String>> getComparableGroupPropertyPairs()
This should return a set all properties that the comparator requires to be of type Comparable. As properties are associated with a Group we need to return Group,Property pairs. This is used to validate the the ElementComparator against the schema.- Returns:
- set of group,property pairs, in which all properties are required to be comparable.
-
-