Class CompoundEnumeration<E>
java.lang.Object
de.iip_ecosphere.platform.support.plugins.CompoundEnumeration<E>
- Type Parameters:
E- the element type
- All Implemented Interfaces:
Enumeration<E>
A compound enumeration.
- Author:
- SUN/Oracle (sun.misc)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprivate booleannext()Determines the next element and returns whether it exists.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Enumeration
asIterator
-
Field Details
-
enums
-
index
private int index
-
-
Constructor Details
-
CompoundEnumeration
Creates a compound enumeration.- Parameters:
enums- the enumerations to enumerated over.
-
-
Method Details
-
next
private boolean next()Determines the next element and returns whether it exists.- Returns:
- does the next element exist
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElementsin interfaceEnumeration<E>
-
nextElement
- Specified by:
nextElementin interfaceEnumeration<E>
-