com.togethersoft.openapi.util.enum
Class DoubleEnumeration


public class DoubleEnumeration
implements Enumeration

Presents two Objects as an enumeration.

Author:
TogetherSoft
Since: Together 4.0

Field Summary
 private intmyIndex
           
 private ObjectmyValue1
           
 private ObjectmyValue2
           

Constructor Summary
DoubleEnumeration(Object value1, Object value2)
          Creates new enumeration from existing Objects.

Method Summary
 booleanhasMoreElements()
          Checks is there more elements.
 ObjectnextElement()
          Returns next element from this enumeration.

Field Detail

myIndex

private int myIndex

myValue1

private Object myValue1

myValue2

private Object myValue2
Constructor Detail

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.
Method Detail

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.

Association Links

to Class java.lang.Object

to Class java.lang.Object