| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.melati.poem.util.EnumUtils
public final class EnumUtils
An assortment of useful operations on Enumerations.
| Method Summary | ||
|---|---|---|
| static String | concatenated(String sep,
             Enumeration<?> e)Concatenate an Enumeration, specifying the separator. | |
| static boolean | contains(Enumeration<?> e,
         Object o)Whether the Enumeration contain an Object. | |
| static
 | initial(Enumeration<T> e,
        int n)Create a Vector of the first n Elements of an Enumeration. | |
| static
 | join(Enumeration<T> a,
     Enumeration<T> b)Join two Enumerations into a single one. | |
| static
 | skip(Enumeration<T> e,
     int n)Skip a specified number of Elements in an Enumeration. | |
| static
 | vectorOf(Enumeration<T> e)Create a Vector from an Enumeration, supplying an initial size of 20. | |
| static
 | vectorOf(Enumeration<T> e,
         int roughSize)Create a Vector from an Enumeration. | |
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static <T> int skip(Enumeration<T> e,
                           int n)
e - the Enumeration to skip Elements ofn - the number of Elements to skip
public static <T> Vector<T> initial(Enumeration<T> e,
                                    int n)
e - the input Enumerationn - the number of Elements to include
public static <T> Enumeration<T> join(Enumeration<T> a,
                                      Enumeration<T> b)
a - head Enumerationb - tail Enumeration
public static <T> Vector<T> vectorOf(Enumeration<T> e,
                                     int roughSize)
e - the source EnumerationroughSize - starting size of the Vector
public static <T> Vector<T> vectorOf(Enumeration<T> e)
e - the source Enumeration
public static String concatenated(String sep,
                                  Enumeration<?> e)
sep - Separator stringe - Enumeration to be concatenated
public static boolean contains(Enumeration<?> e,
                               Object o)
e - an Enumeration to look ino - the Object to look for
| 
 |  | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||