public class Enumerator<V> extends java.lang.Object implements ApiInterface
| Constructor and Description |
|---|
Enumerator(V[] entries)
Creates an
Enumerator over the given entries. |
| Modifier and Type | Method and Description |
|---|---|
Enumerator<V> |
concat(Enumerator<V> value)
Concatenates the given
Enumerator to this one. |
V |
getValue()
Gets the value of the element at the current
Enumerator position. |
boolean |
next()
Moves this
Enumerator's position to the next element if it exists and returns
true. |
public Enumerator(V[] entries)
Enumerator over the given entries.entries - The values to enumerate.public Enumerator<V> concat(Enumerator<V> value)
Enumerator to this one.value - The Enumerator to concatenate.Enumerators.public boolean next()
Enumerator's position to the next element if it exists and returns
true. Returns false if no next element exists.public V getValue()
Enumerator position.