|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lamatek.util.ArrayUtil
public class ArrayUtil
A utility class to create object arrays from a variety of collection based classes.
| Constructor Summary | |
|---|---|
ArrayUtil()
|
|
| Method Summary | |
|---|---|
java.util.Enumeration |
createEnumeration(java.lang.Object[] objects)
Returns an Enumeration from an array of Objects. |
static java.lang.Object[] |
createObjectArray(java.util.Enumeration num)
A static method that creates an array of Object from an Enumeration. |
static java.lang.Object[] |
createObjectArray(java.util.Vector v)
A static method that creates an array of Object from a Vector. |
static java.lang.String[] |
createStringArray(java.util.Enumeration num)
A static method that creates an array of String from an Enumeration. |
static java.lang.String[] |
createStringArray(java.util.Vector v)
A static method that creates an array of type String from a Vector. |
static java.util.Vector |
createVector(java.lang.Object[] objects)
Creates a Vector from an array of Objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayUtil()
| Method Detail |
|---|
public static java.lang.Object[] createObjectArray(java.util.Enumeration num)
num - - an instance of java.util.Enumeration
public static java.lang.Object[] createObjectArray(java.util.Vector v)
v - - an instance of java.util.Vector
public static java.lang.String[] createStringArray(java.util.Enumeration num)
createObjectArray.
num - - an instance of Enumeration that is known to contain
only elements of type java.lang.String.
public static java.lang.String[] createStringArray(java.util.Vector v)
createObjectArray.
v - - an instance of Vector that is known to contain only
elements of type String.
public static java.util.Vector createVector(java.lang.Object[] objects)
objects - The array to convert
public java.util.Enumeration createEnumeration(java.lang.Object[] objects)
objects - the aray to convert.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||