Class EntityComparator
java.lang.Object
ch.tocco.nice2.persist.core.api.util.EntityComparator
- All Implemented Interfaces:
Comparator<Entity>
Deprecated.
Comparator providing an ordering for field values for entities (based on the default comparator of its type).
Usable to sort an entity list using the
Usable to sort an entity list using the
ValueSortedEntityList
.- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, 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
-
EntityComparator
Deprecated.- Parameters:
orderBy
- commaseparated string of fields or relations describing the ordering, based on the commonly known syntax of the PersistQL, e.g. "lastname,relAddress.street"
-
-
Method Details
-
compare
Deprecated.- Specified by:
compare
in interfaceComparator<Entity>
-
EntityModelUtils