com.jalios.jstore
Class BasicStorable.MdateComparator<T extends Storable>

java.lang.Object
  extended by com.jalios.jstore.BasicStorable.MdateComparator<T>
Type Parameters:
T -
All Implemented Interfaces:
Comparator<T>
Direct Known Subclasses:
Publication.DdateComparator
Enclosing class:
BasicStorable

public static class BasicStorable.MdateComparator<T extends Storable>
extends Object
implements Comparator<T>

Compares two Storables using their Mdate in descending order (newest date first). Default to Id Comparison : - If any Mdate of is null. - If Mdate are the equals. Note: this comparator imposes orderings that are inconsistent with equals.


Constructor Summary
BasicStorable.MdateComparator()
           
 
Method Summary
 int compare(T s1, T s2)
           
 
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

BasicStorable.MdateComparator

public BasicStorable.MdateComparator()
Method Detail

compare

public int compare(T s1,
                   T s2)
Specified by:
compare in interface Comparator<T extends Storable>


Copyright © 2001-2010 Jalios SA. All Rights Reserved.