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
ConstructorsConstructorDescriptionTLcdLimitedEnumeration(Enumeration aEnumeration, int aCount) Constructs a newEnumerationfrom the givenEnumerationwith 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, waitMethods inherited from interface java.util.Enumeration
asIterator
-
Constructor Details
-
TLcdLimitedEnumeration
Constructs a newEnumerationfrom the givenEnumerationwith the given maximum number of elements.- Parameters:
aEnumeration- the basicEnumerationthat will be returned.aCount- the maximum number of elements that will be returned.
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElementsin interfaceEnumeration
-
nextElement
- Specified by:
nextElementin interfaceEnumeration
-