| Package | com.yworks.bridge.util |
| Interface | public interface ListIterator extends Iterator |
| Method | Defined By | ||
|---|---|---|---|
![]() | hasNext():Boolean
Answers if there are more elements to iterate. | Iterator | |
hasPrevious():Boolean
Answers if there are previous elements to iterate. | ListIterator | ||
nextIndex():int
Answers the index of the next object in the iteration. | ListIterator | ||
![]() | nextItem():Object
Answers the next object in the iteration. | Iterator | |
previousIndex():int
Answers the index of the previous object in the iteration. | ListIterator | ||
previousItem():Object
Answers the previous object in the iteration. | ListIterator | ||
![]() | removeItem():void
Removes the last object returned by next from the collection. | Iterator | |
| hasPrevious | () | method |
public function hasPrevious():BooleanAnswers if there are previous elements to iterate.
ReturnsBoolean — true if there are previous elements, false otherwise
|
See also
| nextIndex | () | method |
public function nextIndex():intAnswers the index of the next object in the iteration.
Returnsint — the index of the next object
|
Error — when there are no more elements
|
See also
| previousIndex | () | method |
public function previousIndex():intAnswers the index of the previous object in the iteration.
Returnsint — the index of the previous object
|
Error — when there are no previous elements
|
See also
| previousItem | () | method |
public function previousItem():ObjectAnswers the previous object in the iteration.
ReturnsObject — the previous object
|
Error — when there are no previous elements
|
See also