Package com.luciad.util.enumeration
Class TLcdConcatEnumeration
java.lang.Object
com.luciad.util.enumeration.TLcdConcatEnumeration
- All Implemented Interfaces:
ILcdAutoCloseableEnumeration,AutoCloseable,Enumeration
This class concatenates two
Enumeration objects to a
single Enumeration.-
Constructor Summary
ConstructorsConstructorDescriptionTLcdConcatEnumeration(Enumeration aEnumeration1, Enumeration aEnumeration2) Constructs a newEnumerationthat subsequently enumerates the two given Enumerations. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This close method does not throw checked exceptions.booleanImplementsEnumeration.hasMoreElements().ImplementsEnumeration.nextElement().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
-
Constructor Details
-
TLcdConcatEnumeration
Constructs a newEnumerationthat subsequently enumerates the two given Enumerations.- Parameters:
aEnumeration1- theEnumerationthat will be returned first.aEnumeration2- theEnumerationthat will be returned second.
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()ImplementsEnumeration.hasMoreElements().- Specified by:
hasMoreElementsin interfaceEnumeration
-
nextElement
ImplementsEnumeration.nextElement().- Specified by:
nextElementin interfaceEnumeration
-
close
public void close()Description copied from interface:ILcdAutoCloseableEnumerationThis close method does not throw checked exceptions.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceILcdAutoCloseableEnumeration
-