| Package | org.wak.utils |
| Interface | public interface IIterator |
| Implementors | ArrayIterator |
| Method | Defined by | ||
|---|---|---|---|
|
hasNext():Boolean
Returns true if the iteration has more elements.
| IIterator | ||
|
next():Object
Returns the next element in the iteration.
| IIterator | ||
|
remove():void
Removes from the underlying collection the last element returned by the
iterator (optional operation).
| IIterator | ||
| hasNext | () | method |
public function hasNext():BooleanReturns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
ReturnsBoolean — Returns true if the iteration has more elements. |
| next | () | method |
public function next():ObjectReturns the next element in the iteration.
ReturnsObject — the next element in the iteration. |
| remove | () | method |
public function remove():voidRemoves from the underlying collection the last element returned by the iterator (optional operation). This method can be called only once per call to next. The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method.