Package io.ebeaninternal.server.el
Class ElComparatorProperty<T>
- java.lang.Object
-
- io.ebeaninternal.server.el.ElComparatorProperty<T>
-
- All Implemented Interfaces:
ElComparator<T>
,Serializable
,Comparator<T>
public final class ElComparatorProperty<T> extends Object implements Comparator<T>, ElComparator<T>
Comparator based on a ElGetValue.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ElComparatorProperty(ElPropertyValue elGetValue, boolean ascending, boolean nullsHigh)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(T o1, T o2)
Compare given 2 beans.int
compareValue(Object value, T o2)
Compare with a fixed value to a given bean.int
compareValues(Object val1, Object val2)
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Constructor Detail
-
ElComparatorProperty
public ElComparatorProperty(ElPropertyValue elGetValue, boolean ascending, boolean nullsHigh)
-
-
Method Detail
-
compare
public int compare(T o1, T o2)
Description copied from interface:ElComparator
Compare given 2 beans.- Specified by:
compare
in interfaceComparator<T>
- Specified by:
compare
in interfaceElComparator<T>
-
compareValue
public int compareValue(Object value, T o2)
Description copied from interface:ElComparator
Compare with a fixed value to a given bean.- Specified by:
compareValue
in interfaceElComparator<T>
-
compareValues
public int compareValues(Object val1, Object val2)
-
-