com.togethersoft.openapi.util.enum
Class EnumerationCopy
- public class EnumerationCopy
- implements Enumeration
Presents enumeration on the base of existing enumeration.
- Author:
- TogetherSoft
- Since: Together 4.0
| Constructor Summary |
EnumerationCopy(Enumeration enum) Creates new enumeration from existing enumeration. |
| Method Summary |
boolean | hasMoreElements() Checks is there more elements in enumeration after counter. |
Object | nextElement() Returns next element from this enumeration. |
void | reset() |
myElements
private List myElements
myIterator
private Iterator myIterator
EnumerationCopy
public EnumerationCopy(Enumeration enum)
- Creates new enumeration from existing enumeration.
- Parameters:
- enum Existing enumeration.
hasMoreElements
public boolean hasMoreElements()
- Checks is there more elements in enumeration after counter.
- Returns:
true if there is more elements, false else.
nextElement
public Object nextElement()
- Returns next element from this enumeration.
- Returns:
Object.
reset
public void reset()
to Class java.util.List
to Class java.util.Iterator