public class Enumerator<T> extends Object
constructor, prototype
Modifier | Constructor and Description |
---|---|
protected |
Enumerator() |
|
Enumerator(Object collection) |
Modifier and Type | Method and Description |
---|---|
Boolean |
atEnd()
Returns true if the current item is the last one in the collection, or the collection is empty,
or the current item is undefined.
|
T |
item()
Returns the current item in the collection
|
void |
moveFirst()
Resets the current item in the collection to the first item.
|
void |
moveNext()
Moves the current item to the next item in the collection.
|
$applyStatic, $applyStatic, $delete, $delete, $get, $get, $set, $set, $super, assign, create, create, defineProperties, defineProperty, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, hasOwnProperty, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, propertyIsEnumerable, propertyIsEnumerable, seal, toJSString, toLocaleString, toString, valueOf
public Enumerator(Object collection)
protected Enumerator()
public Boolean atEnd()
public T item()
public void moveFirst()
public void moveNext()