|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.util.collection.Iterators
public final class Iterators
A collection of Iterator and Enumeration
utilities.
| Field Summary | |
|---|---|
static Iterator |
EMPTY_ITERATOR
An empty Iterator |
| Constructor Summary | |
|---|---|
Iterators()
|
|
| Method Summary | |
|---|---|
static Iterator |
forEnumeration(Enumeration e)
Return an Iterator wrapper for the given Enumeration |
static Iterator |
makeImmutable(Iterator iter)
Make an Iterator immutable |
static Enumeration |
makeSynchronized(Enumeration e)
Returns a synchronized version of the given Enumeration. |
static Iterator |
makeSynchronized(Iterator iter)
Returns a synchronized version of the given Iterator. |
static Enumeration |
toEnumeration(Iterator iter)
Return an Enumeration for the given Iterator. |
static String |
toString(Iterator iter)
Return a comma delimited string representation of all of the elements in the given Iterator. |
static String |
toString(Iterator iter,
String delim)
Return a delimited string representation of all of the elements in the given Iterator. |
static Iterator |
union(Iterator[] iters)
Returns an Iterator containing the union of all of the elements in the given iterator array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Iterator EMPTY_ITERATOR
| Constructor Detail |
|---|
public Iterators()
| Method Detail |
|---|
public static Iterator forEnumeration(Enumeration e)
enum - Enumeration to wrap
public static Enumeration toEnumeration(Iterator iter)
iter - Iterator to wrap.
public static Iterator makeImmutable(Iterator iter)
iter - Iterator to make immutable
public static Iterator makeSynchronized(Iterator iter)
iter - Iterator to synchronize.
public static Enumeration makeSynchronized(Enumeration e)
enum - Enumeration to synchronize.
public static Iterator union(Iterator[] iters)
iters - Array of iterators.
public static String toString(Iterator iter,
String delim)
iter - Iterator to convert to string.delim - Elemement delimiter.
public static String toString(Iterator iter)
iter - Iterator to convert to string.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||