com.togethersoft.openapi.util.enum
Class DoubleEnumeration
- public class DoubleEnumeration
- implements Enumeration
Presents two Objects as an enumeration.
- Author:
- TogetherSoft
| 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. |
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.