com.atlassian.jira.ofbiz
Class OfBizStringFieldComparator
java.lang.Object
com.atlassian.jira.ofbiz.OfBizStringFieldComparator
- All Implemented Interfaces:
- Comparator<org.ofbiz.core.entity.GenericValue>
@PublicApi
public class OfBizStringFieldComparator
- extends Object
- implements Comparator<org.ofbiz.core.entity.GenericValue>
Comparator that compares two GenericValue objects based on a given String field.
Note that the comparison is case insensitive, and orders null at the end.
- Since:
- v4.3
Method Summary |
int |
compare(org.ofbiz.core.entity.GenericValue gv1,
org.ofbiz.core.entity.GenericValue gv2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OfBizStringFieldComparator
public OfBizStringFieldComparator(String fieldName)
compare
public int compare(org.ofbiz.core.entity.GenericValue gv1,
org.ofbiz.core.entity.GenericValue gv2)
- Specified by:
compare
in interface Comparator<org.ofbiz.core.entity.GenericValue>
Copyright © 2002-2013 Atlassian. All Rights Reserved.