Constructors Summary |
---|
public Enumerator(Collection collection)Return an Enumeration over the values of the specified Collection.
this(collection.iterator());
|
public Enumerator(Collection collection, boolean clone)Return an Enumeration over the values of the specified Collection.
this(collection.iterator(), clone);
|
public Enumerator(Iterator iterator)Return an Enumeration over the values returned by the
specified Iterator.
super();
this.iterator = iterator;
|
public Enumerator(Iterator iterator, boolean clone)Return an Enumeration over the values returned by the
specified Iterator.
super();
if (!clone) {
this.iterator = iterator;
} else {
List list = new ArrayList();
while (iterator.hasNext()) {
list.add(iterator.next());
}
this.iterator = list.iterator();
}
|
public Enumerator(Map map)Return an Enumeration over the values of the specified Map.
this(map.values().iterator());
|
public Enumerator(Map map, boolean clone)Return an Enumeration over the values of the specified Map.
this(map.values().iterator(), clone);
|