com.jalios.jstore
Class BasicStorable.MdateComparator<T extends Storable>
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicStorable.MdateComparator
public BasicStorable.MdateComparator()
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.