|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.zig_project.gpl.common.enumerations.Enumerator
The Enumerator class provides a library of methods in order to operate on Enumerations, such as comparing them, and converting them into a displayable form.
Field Summary | |
static String |
ON_LINE_SEP
Default seperator between two objects to be displayed on a single line of text. |
Constructor Summary | |
Enumerator()
|
Method Summary | |
static boolean |
equals(Enumeration a,
Enumeration b)
Compares two Enumerations if they contain the same sequence of elements. |
static String |
list(Enumeration e,
String sep)
Lists the contents of the Enumeration by their String representation. |
static void |
list(Enumeration e,
StringBuffer sb,
String sep)
Lists the contents of the Enumeration by their String representation. |
static String |
listOnLine(Enumeration e)
Lists the contents of the Enumeration as a String that can be displayed as a single line. |
static void |
listOnLine(Enumeration e,
StringBuffer sb)
Lists the contents of the Enumeration by their String representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String ON_LINE_SEP
Constructor Detail |
public Enumerator()
Method Detail |
public static boolean equals(Enumeration a, Enumeration b)
public static String listOnLine(Enumeration e)
public static void listOnLine(Enumeration e, StringBuffer sb)
sb.append(Enumerator.listOnLine(e));
but is potentially more efficient.
public static String list(Enumeration e, String sep)
e
- the Enumeration from which to list elementssep
- the seperator to use between each element
public static void list(Enumeration e, StringBuffer sb, String sep)
sb.append(Enumerator.list(e, sep));
but is potentially more efficient.
e
- the Enumeration from which to list elementssep
- the seperator to use between each elementsb
- the buffer in which to store the resulting list
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |