com.togethersoft.openapi.util.enum
Class StringEnumerationAdapter


public class StringEnumerationAdapter
implements StringEnumeration

Minimal implementation enumeration of a Strings.

Author:
TogetherSoft
Since: Together 4.0

Field Summary
 private EnumerationmySource
           

Constructor Summary
StringEnumerationAdapter(Enumeration source)
          Creates new enumeration of a Strings from existing.

Method Summary
 booleanhasMoreElements()
          Checks is there more strings in this enumeration.
 ObjectnextElement()
          Returns next element from enumeration as a Object.
 StringnextString()
          Returns next element from enumeration as a String.

Field Detail

mySource

private Enumeration mySource
Constructor Detail

StringEnumerationAdapter

public StringEnumerationAdapter(Enumeration source)
Creates new enumeration of a Strings from existing.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Checks is there more strings in this enumeration.
Returns: true if there is, false else.

nextElement

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

nextString

public String nextString()
Returns next element from enumeration as a String.
Returns: next element from enumeration as a String.

Association Links

to Class java.util.Enumeration