net.xoetrope.xui.data
Interface XIterator

All Known Implementing Classes:
XPojoIterator

public interface XIterator

Copyright (c) Xoetrope Ltd., 1998-2003
License: see license.txt


Method Summary
 java.lang.Object current()
          Returns the current element in the iteration
 java.lang.Object first()
          Returns the first element in the iteration.
 boolean hasNext()
          Determines whether the iteration has more elements.
 boolean hasPrevious()
          Determines if this iterator has more elements while traversing the underlying collection in the reverse direction.
 java.lang.Object last()
          Returns the last element in the iteration.
 java.lang.Object next()
          Returns the next element in the iteration.
 java.lang.Object previous()
          Returns the previous element in the iteration.
 

Method Detail

hasNext

boolean hasNext()
Determines whether the iteration has more elements.

Returns:
true if the iteration has more elements, false otherwise

next

java.lang.Object next()
Returns the next element in the iteration.

Returns:
the next element

hasPrevious

boolean hasPrevious()
Determines if this iterator has more elements while traversing the underlying collection in the reverse direction.

Returns:
true if the iteration has more elements, false otherwise

previous

java.lang.Object previous()
Returns the previous element in the iteration.

Returns:
the previous element

first

java.lang.Object first()
Returns the first element in the iteration.

Returns:
the first element

last

java.lang.Object last()
Returns the last element in the iteration.

Returns:
the last element.

current

java.lang.Object current()
Returns the current element in the iteration

Returns:
the current element