com.togethersoft.openapi.util.enum
Class ArrayEnumeration
- public class ArrayEnumeration
- implements Enumeration
Presents array of Objects as an enumeration.
- Author:
- TogetherSoft
- Since: Together 4.0
| Constructor Summary |
ArrayEnumeration(Object[] array) Creates new enumeration from existing array. |
| Method Summary |
boolean | hasMoreElements() Checks is there more elements in enumeration. |
Object | nextElement() Returns next elements from enumeration. |
myArray
private Object[] myArray
myCurrent
private int myCurrent
ArrayEnumeration
public ArrayEnumeration(Object[] array)
- Creates new enumeration from existing array.
- Parameters:
- array Existing array of
Objects.
hasMoreElements
public boolean hasMoreElements()
- Checks is there more elements in enumeration.
- Returns:
true if there is, false else.
nextElement
public Object nextElement()
- Returns next elements from enumeration.
- Returns:
Object, if there is element, null otherwise.
to Class java.lang.Object