com.ibm.wsspi.kernel.service.utils
Class CompositeEnumeration<T>
- java.lang.Object
com.ibm.wsspi.kernel.service.utils.CompositeEnumeration<T>
All implemented interfaces:
java.util.Enumeration<T>
- public class CompositeEnumeration<T>
- extends java.lang.Object
- implements java.util.Enumeration<T>
Only use this class if you need to work with Enumerations, e.g. because you are working with an old API.
Constructor Summary
Constructor and Description |
---|
CompositeEnumeration(java.util.Enumeration<T> first)
Create the enumeration wrapping a single enumeration.
|
Method Summary
Modifier and Type | Method and Description |
---|---|
add(java.util.Enumeration<T> enumeration)
Fluent method for chaining additions of subsequent enumerations.
|
|
|
hasMoreElements()
|
nextElement()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail
CompositeEnumeration
- public CompositeEnumeration(java.util.Enumeration<T> first)
Create the enumeration wrapping a single enumeration.
Method Detail
add
- public CompositeEnumeration<T> add( java.util.Enumeration<T> enumeration)
Fluent method for chaining additions of subsequent enumerations.
hasMoreElements
- public boolean hasMoreElements( )
Specified by:
hasMoreElements
in interface java.util.Enumeration<T>
nextElement
- public T nextElement()
Specified by:
nextElement
in interface java.util.Enumeration<T>