com.togethersoft.openapi.util.enum
Class EnumerationCopy


public class EnumerationCopy
implements Enumeration

Presents enumeration on the base of existing enumeration.

Author:
TogetherSoft
Since: Together 4.0

Field Summary
 private ListmyElements
           
 private IteratormyIterator
           

Constructor Summary
EnumerationCopy(Enumeration enum)
          Creates new enumeration from existing enumeration.

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

Field Detail

myElements

private List myElements

myIterator

private Iterator myIterator
Constructor Detail

EnumerationCopy

public EnumerationCopy(Enumeration enum)
Creates new enumeration from existing enumeration.
Parameters:
enum Existing enumeration.
Method Detail

hasMoreElements

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

nextElement

public Object nextElement()
Returns next element from this enumeration.
Returns: Object.

reset

public void reset()

Association Links

to Class java.util.List

to Class java.util.Iterator