|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extension to Comparable objects that allow increment and decrement operations. This is useful for sorted maps, and other systems that require an abstract increment procedure.
Method Summary | |
Incrementable |
next()
Gets the item following this one. |
Incrementable |
previous()
Gets the item before this one. |
Methods inherited from interface java.lang.Comparable |
compareTo |
Method Detail |
public Incrementable next()
true == a.next().prev().equals(a)
.
public Incrementable previous()
true == a.prev().next().equals(a)
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |