|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.lazydom.html.CollectionIndex
CollectionImpl#item
must traverse down the tree and decrement the
index until it matches an element who's index is zero. Since integers are
passed by value, this class servers to pass the index into each recursion
by reference. It encompasses all the operations that need be performed on
the index, although direct access is possible.
CollectionImpl#item
Constructor Summary | |
(package private) |
CollectionIndex(int index)
Constructs a new index with the specified initial value. |
Method Summary | |
(package private) void |
decrement()
Decrements the index by one. |
(package private) int |
getIndex()
Returns the current index. |
(package private) boolean |
isZero()
Returns true if index is zero (or negative). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
CollectionIndex(int index)
index
- The initial valueMethod Detail |
int getIndex()
void decrement()
boolean isZero()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |