com.atlassian.jira.ofbiz
Class OfBizDateFieldComparator

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

public class OfBizDateFieldComparator
extends Object
implements Comparator<org.ofbiz.core.entity.GenericValue>

Compares two GenericValue objects based on a given Date field.

Note that this Comparator orders null at the end.

Since:
v4.3

Constructor Summary
OfBizDateFieldComparator(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

OfBizDateFieldComparator

public OfBizDateFieldComparator(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.