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
 booleanhasMoreElements()
           Checks is there more elements.
 ObjectnextElement()
           Returns next element from this enumeration.

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.