FileDocCategorySizeDatePackage
Enumerations.javaAPI DocApache Ant 1.705887Wed Dec 13 06:16:22 GMT 2006org.apache.tools.ant.taskdefs.optional.junit

Enumerations

public final class Enumerations extends 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.

Fields Summary
Constructors Summary
private Enumerations()

        
Methods Summary
public static java.util.EnumerationfromArray(java.lang.Object[] array)
creates an enumeration from an array of objects.

param
array the array of object to enumerate.
return
the enumeration over the array of objects.

                return new ArrayEnumeration(array);
        
public static java.util.EnumerationfromCompound(java.util.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.

param
enums the array of enumerations.
return
the enumeration over the array of enumerations.

                return new CompoundEnumeration(enums);