com.atlassian.jira.ofbiz
Class OfBizStringFieldComparator

java.lang.Object
  extended by 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

Constructor Summary
OfBizStringFieldComparator(String fieldName)
           
 
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
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

OfBizStringFieldComparator

public OfBizStringFieldComparator(String fieldName)
Method Detail

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-2012 Atlassian. All Rights Reserved.