org.apache.tools.ant.taskdefs.optional.junit
Class Enumerations
java.lang.Object
org.apache.tools.ant.taskdefs.optional.junit.Enumerations
public final class Enumerations
extends java.lang.Object
A couple of methods related to enumerations that might be useful.
This class should probably disappear once the required JDK is set to 1.2
instead of 1.1.
static Enumeration | fromArray(Object[] array) - creates an enumeration from an array of objects.
|
static Enumeration | fromCompound(Enumeration[] enums) - creates an enumeration from an array of enumeration.
|
fromArray
public static Enumeration fromArray(Object[] array)
creates an enumeration from an array of objects.
array
- the array of object to enumerate.
- the enumeration over the array of objects.
fromCompound
public static Enumeration fromCompound(Enumeration[] enums)
creates an enumeration from an array of enumeration. The created enumeration
will sequentially enumerate over all elements of each enumeration and skip
null enumeration elements in the array.
enums
- the array of enumerations.
- the enumeration over the array of enumerations.
Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.