|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jalios.jstore.BasicStorable.IdComparator<T>
T - subclasse of Storablepublic static class BasicStorable.IdComparator<T extends Storable>
Compares two Storables using their ID. Note: this comparator imposes orderings that are inconsistent with equals.
| Constructor Summary | |
|---|---|
BasicStorable.IdComparator()
|
|
| Method Summary | |
|---|---|
int |
compare(T s1,
T s2)
|
static int |
compareStorableId(Storable s1,
Storable s2)
Compare two storable using their ID. |
| 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 |
|---|
public BasicStorable.IdComparator()
| Method Detail |
|---|
public int compare(T s1,
T s2)
compare in interface java.util.Comparator<T extends Storable>
public static int compareStorableId(Storable s1,
Storable s2)
s1 - the first storable to compares2 - the second storable to compare
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||