Package com.jalios.jstore
Class BasicStorable.IdComparator<T extends Storable>
- java.lang.Object
-
- com.jalios.jstore.BasicStorable.IdComparator<T>
-
- Type Parameters:
T
- subclasse of Storable
- All Implemented Interfaces:
java.util.Comparator<T>
- Enclosing class:
- BasicStorable
public static class BasicStorable.IdComparator<T extends Storable> extends java.lang.Object implements java.util.Comparator<T>
Compares two Storables using their ID. Note: this comparator imposes orderings that are inconsistent with equals.
-
-
Constructor Summary
Constructors Constructor Description IdComparator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(T s1, T s2)
static int
compareStorableId(Storable s1, Storable s2)
Compare two storable using their ID.
-