public interface TNonXMLObjectIterator
Alternating calls to next and previous will return the same TNonXMLObject instance repeatedly. If you call moveBy with a positive argument n, it has the same effect on the position of the iterator as calling next n times. If you call moveBy with a negative argument n, it has the same effect on the iterator as calling previous n times. Calling moveBy with a zero argument has no effect.
Modifier and Type | Method and Description |
---|---|
boolean |
canMoveBy(int offset)
Indicates if this iterator can be moved by the given offset.
|
void |
close()
Closes this iterator.
|
boolean |
hasNext()
Returns true if this iterator has more TNonXMLObject instances when traversing the
list in the forward direction.
|
boolean |
hasPrevious()
Returns true if this list iterator has more TNonXMLObject instances when traversing the
list in the reverse direction.
|
void |
moveBy(int offset)
Moves the iterator by the given offset.
|
TNonXMLObject |
next()
Returns the next element in the list of TNonXMLObject instances.
|
TNonXMLObject |
previous()
Returns the previous TNonXMLObject instance in the list.
|
void |
reset()
Resets the iterator to its initial state.
|
boolean hasNext()
TNonXMLObject next() throws TNoSuchNonXMLObjectException, TIteratorException
TNoSuchNonXMLObjectException
- the if iteration has no next TNonXMLObject instance.TIteratorException
- signals an error while attempting to access Tamino.boolean hasPrevious()
TNonXMLObject previous() throws TNoSuchNonXMLObjectException, TIteratorException
TNoSuchNonXMLObjectException
- if the iteration has no previous TNonXMLObject instance.TIteratorException
- signals an error while attempting to access Tamino.boolean canMoveBy(int offset) throws TIteratorException
offset
- the positive or negative amount to move the iteratorTIteratorException
- signals an error while attempting to access Tamino.void moveBy(int offset) throws TNoSuchNonXMLObjectException, TIteratorException
offset
- the positive or negative amount to move the iteratorTNoSuchNonXMLObjectException
- if the new position is out of bounds.TIteratorException
- signals an error while attempting to access Tamino.void reset() throws TIteratorException
TIteratorException
- signals an error while attempting to access Tamino.void close() throws TIteratorException
TIteratorExceptionsignals
- an error while attempting to access Tamino.TIteratorException
Copyright (c) 2017 Software AG. All Rights Reserved.