| Package | org.servebox.commons.collection |
| Interface | public interface IListIterator extends IIterator |
| Method | Defined by | ||
|---|---|---|---|
|
add(o:IBasicObject):void
Inserts the element into the list.
| IListIterator | ||
![]() |
hasNext():Boolean
Indicates whether the iterator has more elements when iterate the list in the forward direction.
| IIterator | |
|
hasPrevious():Boolean
Indicates whether the iterator has more elements when iterate the list in the backward direction.
| IListIterator | ||
![]() |
Retrieves the next element in the underlying list.
| IIterator | |
|
nextIndex():int
Retrieves the index of the element that would be returned by a subsequent call to next.
| IListIterator | ||
|
Retrieves the previous element in the underlying list, if available.
| IListIterator | ||
|
previousIndex():int
Retrieves the index of the element that would be returned by a subsequent call to previous.
| IListIterator | ||
![]() |
remove():void
Removes the current element.
| IIterator | |
|
set(o:IBasicObject):void
Replaces the current element.
| IListIterator | ||
| add | () | method |
public function add(o:IBasicObject):voidInserts the element into the list.
Parameterso:IBasicObject |
| hasPrevious | () | method |
public function hasPrevious():BooleanIndicates whether the iterator has more elements when iterate the list in the backward direction.
ReturnsBoolean |
| nextIndex | () | method |
public function nextIndex():intRetrieves the index of the element that would be returned by a subsequent call to next.
Returnsint |
| previous | () | method |
public function previous():IBasicObjectRetrieves the previous element in the underlying list, if available.
ReturnsIBasicObject |
| previousIndex | () | method |
public function previousIndex():intRetrieves the index of the element that would be returned by a subsequent call to previous.
Returnsint |
| set | () | method |
public function set(o:IBasicObject):voidReplaces the current element. The current element is the last that was read using next or previous.
Parameterso:IBasicObject |