Package com.luciad.util.enumeration
Class TLcdLimitedEnumeration
java.lang.Object
com.luciad.util.enumeration.TLcdLimitedEnumeration
- All Implemented Interfaces:
Enumeration
This
Enumeration
delegates to a given Enumeration
,
but only returns a given maximum number of its elements.- Since:
- 9.1.01
-
Constructor Summary
ConstructorDescriptionTLcdLimitedEnumeration
(Enumeration aEnumeration, int aCount) Constructs a newEnumeration
from the givenEnumeration
with the given maximum number of elements. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Enumeration
asIterator
-
Constructor Details
-
TLcdLimitedEnumeration
Constructs a newEnumeration
from the givenEnumeration
with the given maximum number of elements.- Parameters:
aEnumeration
- the basicEnumeration
that will be returned.aCount
- the maximum number of elements that will be returned.
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElements
in interfaceEnumeration
-
nextElement
- Specified by:
nextElement
in interfaceEnumeration
-