com.togethersoft.openapi.util.enum
Class DoubleEnumeration
- public class DoubleEnumeration
- implements Enumeration
Presents two Objects as an enumeration.
- Author:
- TogetherSoft
- Since: Together 4.0
| Constructor Summary |
DoubleEnumeration(Object value1, Object value2) Creates new enumeration from existing Objects. |
| Method Summary |
boolean | hasMoreElements() Checks is there more elements. |
Object | nextElement() Returns next element from this enumeration. |
myIndex
private int myIndex
myValue1
private Object myValue1
myValue2
private Object myValue2
DoubleEnumeration
public DoubleEnumeration(Object value1, Object value2)
- Creates new enumeration from existing
Objects.
Sets enumeration counter to zero.- Parameters:
- value1 first
Object.- value2 second
Object.
hasMoreElements
public boolean hasMoreElements()
- Checks is there more elements.
- Returns:
true if there is more elements, false otherwise.
nextElement
public Object nextElement()
- Returns next element from this enumeration.
- Returns:
Object if there is element, null otherwise.
to Class java.lang.Object
to Class java.lang.Object