Class GenericValueComparator
java.lang.Object
com.atlassian.jira.sharing.search.GenericValueComparator
- All Implemented Interfaces:
Comparator<org.ofbiz.core.entity.GenericValue>
public class GenericValueComparator
extends Object
implements Comparator<org.ofbiz.core.entity.GenericValue>
A comparator that gets a value from a GenericValue and then delegates
comparison to either natural order or a specified delegate
- Since:
- v3.13
-
Constructor Summary
ConstructorsConstructorDescriptionGenericValueComparator
(String field) GenericValueComparator
(String field, Comparator<Object> delegate) -
Method Summary
Modifier and TypeMethodDescriptionint
compare
(org.ofbiz.core.entity.GenericValue o1, org.ofbiz.core.entity.GenericValue o2) 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
-
GenericValueComparator
-
GenericValueComparator
-
-
Method Details
-
compare
public int compare(org.ofbiz.core.entity.GenericValue o1, org.ofbiz.core.entity.GenericValue o2) - Specified by:
compare
in interfaceComparator<org.ofbiz.core.entity.GenericValue>
-