public class TLcdFilteredEnumeration extends Object implements ILcdAutoCloseableEnumeration
Enumeration
delegates to a given Enumeration
,
filtering out elements with a given filter.Constructor and Description |
---|
TLcdFilteredEnumeration(Enumeration aEnumeration,
ILcdFilter aFilter)
Constructs a new
Enumeration that delegates to the given
Enumeration . |
Modifier and Type | Method and Description |
---|---|
void |
close()
This close method does not throw checked exceptions.
|
boolean |
hasMoreElements() |
Object |
nextElement() |
public TLcdFilteredEnumeration(Enumeration aEnumeration, ILcdFilter aFilter)
Enumeration
that delegates to the given
Enumeration
. Its elements are filtered with the given filter.aEnumeration
- the base Enumeration
whose elements will
be returned.aFilter
- the ILcdFilter
that is applied to the
elements.public boolean hasMoreElements()
hasMoreElements
in interface Enumeration
public Object nextElement()
nextElement
in interface Enumeration
public void close()
ILcdAutoCloseableEnumeration
close
in interface ILcdAutoCloseableEnumeration
close
in interface AutoCloseable