public class TLcdLimitedEnumeration extends Object implements Enumeration
Enumeration
delegates to a given Enumeration
,
but only returns a given maximum number of its elements.Constructor and Description |
---|
TLcdLimitedEnumeration(Enumeration aEnumeration,
int aCount)
Constructs a new
Enumeration from the given Enumeration
with the given maximum number of elements. |
Modifier and Type | Method and Description |
---|---|
boolean |
hasMoreElements() |
Object |
nextElement() |
public TLcdLimitedEnumeration(Enumeration aEnumeration, int aCount)
Enumeration
from the given Enumeration
with the given maximum number of elements.aEnumeration
- the basic Enumeration
that will be returned.aCount
- the maximum number of elements that will be returned.public boolean hasMoreElements()
hasMoreElements
in interface Enumeration
public Object nextElement()
nextElement
in interface Enumeration