Module jpastreamer.field
Interface LongFieldComparator<ENTITY>
- Type Parameters:
ENTITY- entity type
- All Superinterfaces:
Comparator<ENTITY>,FieldComparator<ENTITY>
- All Known Subinterfaces:
LongField<ENTITY>
A
FieldComparator that compares values of a LongField.- Since:
- 3.0.0
- Author:
- Emil Forslund
-
Method Summary
Methods inherited from interface java.util.Comparator
compare, equals, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface com.speedment.jpastreamer.field.comparator.FieldComparator
getNullOrder, isReversed
-
Method Details
-
getField
HasLongValue<ENTITY> getField()Gets the field that is being compared.- Specified by:
getFieldin interfaceFieldComparator<ENTITY>- Returns:
- the compared field
-
reversed
LongFieldComparator<ENTITY> reversed()Description copied from interface:FieldComparatorReturns a newFieldComparatorthat order entities in the opposite orders compared to this comparator. For an example, if this comparator orders entities based on a column 'firstname' in descending order, then the returnedFieldComparatorwill be ordering entities based on 'firstname' in ascending order.- Specified by:
reversedin interfaceComparator<ENTITY>- Specified by:
reversedin interfaceFieldComparator<ENTITY>- Returns:
- a new reverse comparator
-