| Package | system.data.iterators |
| Class | public class ProtectedIterator |
| Inheritance | ProtectedIterator Object |
| Implements | Iterator |
Example :
import system.data.iterators.StringIterator ;
import system.data.iterators.ProtectedIterator ;
var it:ProtectedIterator = new ProtectedIterator( new StringIterator( "hello world" ) ) ;
while ( it.hasNext() )
{
trace( it.next() ) ;
}
| Method | Defined By | ||
|---|---|---|---|
Creates a new ProtectedIterator instance. | ProtectedIterator | ||
hasNext():Boolean
Returns true if the iteration has more elements. | ProtectedIterator | ||
key():*
Returns the current key of the internal pointer of the iterator (optional operation). | ProtectedIterator | ||
next():*
Returns the next element in the iteration. | ProtectedIterator | ||
remove():*
Unsupported method in all ProtectedIterator objects. | ProtectedIterator | ||
reset():void
Unsupported method in all ProtectedIterator. | ProtectedIterator | ||
seek(position:*):void
Unsupported method in all ProtectedIterator. | ProtectedIterator | ||
| ProtectedIterator | () | Constructor |
public function ProtectedIterator(i:Iterator)Creates a new ProtectedIterator instance.
Parametersi:Iterator — the iterator to protected.
|
ArgumentError — If the iterator the passed-in parameter is null or undefined.
|
| hasNext | () | method |
public function hasNext():Boolean
Returns true if the iteration has more elements.
Boolean — true if the iteration has more elements.
|
| key | () | method |
public function key():*Returns the current key of the internal pointer of the iterator (optional operation).
Returns* — the current key of the internal pointer of the iterator (optional operation).
|
| next | () | method |
public function next():*Returns the next element in the iteration.
Returns* — the next element in the iteration.
|
| remove | () | method |
public function remove():*Unsupported method in all ProtectedIterator objects.
Returns* |
IllegalOperationError — the remove() method is unsupported in a ProtectedIterator instance.
|
| reset | () | method |
public function reset():voidUnsupported method in all ProtectedIterator.
IllegalOperationError — the reset() method is unsupported in a ProtectedIterator instance.
|
| seek | () | method |
public function seek(position:*):voidUnsupported method in all ProtectedIterator.
Parameters
position:* |
IllegalOperationError — the seek() method is unsupported in a ProtectedIterator instance.
|