org.kalmeo.util
Class LinkedList.LinkedListEnumeration

java.lang.Object
  extended by org.kalmeo.util.LinkedList.LinkedListEnumeration
Enclosing class:
LinkedList

public class LinkedList.LinkedListEnumeration
extends java.lang.Object

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

getList

public LinkedList getList()
Returns:
the associated LinkedList

getLength

public int getLength()
Returns:
a value between 0 and the associated LinkedList length corresponding to the LinkedList.LinkedListEnumeration length

nextItem

public LinkedListItem nextItem()
Returns the next item in this enumeration, where next is defined by the filter of this enumerator. After calling this method, the enumeration is advanced to the next available record.

Returns:
the previous LinkedListItem in this enumeration
Throws:
java.util.NoSuchElementException - When there is no next item available in the enumeration

previousItem

public LinkedListItem previousItem()
Returns the previous item in this enumeration, where previous is defined by the filter of this enumerator. After calling this method, the enumeration is advanced to the next (previous) available record.

Returns:
the previous LinkedListItem in this enumeration
Throws:
java.util.NoSuchElementException - When there is no previous item available in the enumeration

hasNextItems

public boolean hasNextItems()
Returns true if more items exist in the next direction.

Returns:
true if more items exist in the next direction

hasPreviousItems

public boolean hasPreviousItems()
Returns true if more items exist in the previous direction.

Returns:
true if more items exist in the previous direction

reset

public void reset(Filter filter)
Reset the enumaration with a new Filter.

Parameters:
filter -

reset

public void reset()
Returns the enumeration index to the same state as right after the enumeration was created.



Copyright © 2007-2008 Kalmeo. All Rights Reserved.