Interface ElementComparison
-
public interface ElementComparisonAnElementComparisonoperation is an operation which is used to make comparisons between elements. It is required to have an array ofComparators ofElements
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Comparator<Element>getCombinedComparator()Combine all currently registered comparators into a singleComparatorobject.default Set<Pair<String,String>>getComparableGroupPropertyPairs()Get all of the Group-Property pairs which implement theComparableinterface.List<Comparator<Element>>getComparators()Get the list ofElementcomparators registered to the operation.
-
-
-
Method Detail
-
getComparators
List<Comparator<Element>> getComparators()
Get the list ofElementcomparators registered to the operation.- Returns:
- an ordered
Listcontaining the comparators
-
getCombinedComparator
default Comparator<Element> getCombinedComparator()
Combine all currently registered comparators into a singleComparatorobject.- Returns:
- the combined comparator
-
-