com.tensegrity.generic.util
Class LinkedListInt.Iterator

java.lang.Object
  extended bycom.tensegrity.generic.util.LinkedListInt.Iterator
Enclosing class:
LinkedListInt

public class LinkedListInt.Iterator
extends java.lang.Object

LinkedList iterator class


Constructor Summary
protected LinkedListInt.Iterator()
          Constructor.
 
Method Summary
 boolean hasNext()
          Tests whether there is a next element after the current element that the iterator points to.
 int next()
          Returns the next element from the iterator.
protected  int nextIndex()
          Returns the next index of the iterator (if any).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkedListInt.Iterator

protected LinkedListInt.Iterator()
Constructor.

Method Detail

hasNext

public boolean hasNext()
Tests whether there is a next element after the current element that the iterator points to.

Returns:
true if there is an element next after the current element.
Throws:
ListModifiedException - thrown if a modification of the array was detected.

next

public int next()
Returns the next element from the iterator.

Returns:
the next element
Throws:
ListModifiedException - thrown if a modification of the array was detected.

nextIndex

protected int nextIndex()
Returns the next index of the iterator (if any).

Returns:
the index of the next element (if any).


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.