com.atlassian.jira.issue.comparator
Class LocaleSensitiveGenericValueComparator

java.lang.Object
  extended by com.atlassian.jira.issue.comparator.LocaleSensitiveGenericValueComparator
All Implemented Interfaces:
java.util.Comparator<org.ofbiz.core.entity.GenericValue>

public class LocaleSensitiveGenericValueComparator
extends java.lang.Object
implements java.util.Comparator<org.ofbiz.core.entity.GenericValue>

Compares a generic value using the provided locale to do an i18n string compare on the value specified by the entity column.

Since:
v4.0

Constructor Summary
LocaleSensitiveGenericValueComparator(java.util.Locale locale, java.lang.String entityColumn)
           
 
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

LocaleSensitiveGenericValueComparator

public LocaleSensitiveGenericValueComparator(java.util.Locale locale,
                                             java.lang.String entityColumn)
Method Detail

compare

public int compare(org.ofbiz.core.entity.GenericValue gv1,
                   org.ofbiz.core.entity.GenericValue gv2)
Specified by:
compare in interface java.util.Comparator<org.ofbiz.core.entity.GenericValue>


Copyright © 2002-2011 Atlassian. All Rights Reserved.