Package de.hybris.ant.taskdefs.yunit
Class Enumerations
java.lang.Object
de.hybris.ant.taskdefs.yunit.Enumerations
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.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Enumerationcreates an enumeration from an array of objects.static EnumerationfromCompound(Enumeration[] enums) creates an enumeration from an array of enumeration.
-
Method Details
-
fromArray
creates an enumeration from an array of objects.- Parameters:
array- the array of object to enumerate.- Returns:
- the enumeration over the array of objects.
-
fromCompound
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.- Parameters:
enums- the array of enumerations.- Returns:
- the enumeration over the array of enumerations.
-