com.togethersoft.openapi.util.enum
Class LightEnumerationAdapter

Direct Known Subclasses:
CompositeEnumeration

public class LightEnumerationAdapter
implements Enumeration

Adapts light enumeration to stadard enumeration.

Author:
TogetherSoft
Since: Together 4.0

Field Summary
 private ObjectmyCurrent
           
 private LightEnumerationmyEnum
           

Constructor Summary
LightEnumerationAdapter(LightEnumeration enum)
          Creates new enumeration from existing.

Method Summary
 booleanhasMoreElements()
          Checks is there more elements after counter.
 private voidnext()
           
 ObjectnextElement()
          Return next element from enumeration as an Object.

Field Detail

myCurrent

private Object myCurrent

myEnum

private LightEnumeration myEnum
Constructor Detail

LightEnumerationAdapter

public LightEnumerationAdapter(LightEnumeration enum)
Creates new enumeration from existing.
Parameters:
enum Existing enumeration.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Checks is there more elements after counter.
Returns: true if there is, false else.

next

private void next()

nextElement

public Object nextElement()
Return next element from enumeration as an Object.

Association Links

to Class com.togethersoft.openapi.util.enum.LightEnumeration

to Class java.lang.Object