org.kuali.kfs.gl.businessobject.options
Class OEGDateComparator

java.lang.Object
  extended by org.kuali.kfs.gl.businessobject.options.OEGDateComparator
All Implemented Interfaces:
Comparator

public class OEGDateComparator
extends Object
implements Comparator

A comparator for two origin entry groups, based on the dates of their creations


Constructor Summary
OEGDateComparator()
          Constructs a OEGDateComparator
 
Method Summary
 int compare(Object c1, Object c2)
          Compares two origin entry groups, based on the dates of their creation
 
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

OEGDateComparator

public OEGDateComparator()
Constructs a OEGDateComparator

Method Detail

compare

public int compare(Object c1,
                   Object c2)
Compares two origin entry groups, based on the dates of their creation

Specified by:
compare in interface Comparator
Parameters:
c1 - the first origin entry group to compare
c2 - you can't really compare without two origin groups
Returns:
0 if the creation dates are equal, a negative number if c1's creation date is less than c2's; a positive number otherwise
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.