|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bristle.javalib.util.IterUtil
public class IterUtil
This class contains utility routines for creating and manipulating Java Iterators.
Usage: - The typical scenario for using this class is: Map map = IterUtil.toIterator(Enumeration enumeration); - See the source code of the inner Tester class for more examples. Assumptions: Effects: - None. Anticipated Changes: Notes: Implementation Notes: Portability Issues: Revision History: $Log$
Nested Class Summary | |
---|---|
static class |
IterUtil.Tester
Each class contains a Tester inner class with a main() for easier unit testing. |
Constructor Summary | |
---|---|
IterUtil()
|
Method Summary | |
---|---|
static String |
enumerationToString(Enumeration enumeration)
Return a String version of the Enumeration. |
static String |
iteratorToString(Iterator iter)
Return a String version of the Iterator. |
static Enumeration |
toEnumeration(Iterator iter)
Create an Enumeration from the specified Iterator, or null if the Iterator is null. |
static Iterator |
toIterator(Enumeration enumeration)
Create an Iterator from the specified Enumeration. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IterUtil()
Method Detail |
---|
public static String iteratorToString(Iterator iter)
iter
- Iterator to convert to a String.
public static String enumerationToString(Enumeration enumeration)
enumeration
- Enumeration to convert to a String.
public static Iterator toIterator(Enumeration enumeration)
enumeration
- Enumeration of Objects to put in the Iterator.
public static Enumeration toEnumeration(Iterator iter)
iter
- Iterator to copy to a new List.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |