|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kalmeo.util.LinkedList.LinkedListEnumeration
public class LinkedList.LinkedListEnumeration
This class represent a LinkedList
enumeration.
Method Summary | |
---|---|
int |
getLength()
|
LinkedList |
getList()
|
boolean |
hasNextItems()
Returns true if more items exist in the next direction. |
boolean |
hasPreviousItems()
Returns true if more items exist in the previous direction. |
LinkedListItem |
nextItem()
Returns the next item in this enumeration, where next is defined by the filter of this enumerator. |
LinkedListItem |
previousItem()
Returns the previous item in this enumeration, where previous is defined by the filter of this enumerator. |
void |
reset()
Returns the enumeration index to the same state as right after the enumeration was created. |
void |
reset(Filter filter)
Reset the enumaration with a new Filter . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public LinkedList getList()
LinkedList
public int getLength()
LinkedList
length
corresponding to the LinkedList.LinkedListEnumeration
lengthpublic LinkedListItem nextItem()
LinkedListItem
in this enumeration
java.util.NoSuchElementException
- When there is no next item available in the enumerationpublic LinkedListItem previousItem()
LinkedListItem
in this enumeration
java.util.NoSuchElementException
- When there is no previous item available in the enumerationpublic boolean hasNextItems()
true
if more items exist in the next
directionpublic boolean hasPreviousItems()
true
if more items exist in the previous
directionpublic void reset(Filter filter)
Filter
.
filter
- public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |