com.togethersoft.openapi.util.enum
Class SequenceEnumeration
- public class SequenceEnumeration
- implements Enumeration
Handles two or three enumerations as one.
- Author:
- TogetherSoft
- Since: Together 4.0
| Constructor Summary |
SequenceEnumeration(Enumeration first, Enumeration second) Creates new SequenceEnumeration from two given. |
SequenceEnumeration(Enumeration first, Enumeration second, Enumeration third) Creates new SequenceEnumeration from three given. |
| Method Summary |
boolean | hasMoreElements() Checks is there more elements in combination of enumerations after counter. |
Object | nextElement() Returns next element from combination of enumerations. |
myCurrent
private Enumeration myCurrent
myCurrentIndex
private int myCurrentIndex
myFirst
private Enumeration myFirst
mySecond
private Enumeration mySecond
myThird
private Enumeration myThird
SequenceEnumeration
public SequenceEnumeration(Enumeration first, Enumeration second)
- Creates new SequenceEnumeration from two given.
SequenceEnumeration
public SequenceEnumeration(Enumeration first, Enumeration second, Enumeration third)
- Creates new SequenceEnumeration from three given.
hasMoreElements
public boolean hasMoreElements()
- Checks is there more elements in combination of enumerations after counter.
- Returns:
true if there, false else.
nextElement
public Object nextElement()
- Returns next element from combination of enumerations.
- Returns: Next element from combination of enumerations as an
Object.- Throws:
- NoSuchElementException If there is no more elements in combination.
to Class java.util.Enumeration
to Class java.util.Enumeration
to Class java.util.Enumeration
to Class java.util.Enumeration