| |
|
| java.lang.Object org.apache.pluto.util.Enumerator
Enumerator | final public class Enumerator implements Enumeration(Code) | | Uitlity class to wraps an Enumeration around a Collection, i.e.
Iterator classes.
|
Constructor Summary | |
public | Enumerator(Collection collection) Returns an Enumeration over the specified Collection. | public | Enumerator(Iterator iterator) Returns an Enumeration over the values of the specified Iterator. | public | Enumerator(Map map) Returns an Enumeration over the values of the specified Map. |
Method Summary | |
public boolean | hasMoreElements() Tests if this enumeration contains more elements. | public Object | nextElement() Returns the next element of this enumeration. |
Enumerator | public Enumerator(Collection collection)(Code) | | Returns an Enumeration over the specified Collection.
Parameters: collection - Collection with values that should be enumerated |
Enumerator | public Enumerator(Iterator iterator)(Code) | | Returns an Enumeration over the values of the specified Iterator.
Parameters: iterator - Iterator to be wrapped |
Enumerator | public Enumerator(Map map)(Code) | | Returns an Enumeration over the values of the specified Map.
Parameters: map - Map with values that should be enumerated |
hasMoreElements | public boolean hasMoreElements()(Code) | | Tests if this enumeration contains more elements.
true if this enumeration contains at least one moreelement to provide, false otherwise. |
|
|
|