public class TLcdSubEnumeration extends Object implements ILcdAutoCloseableEnumeration
Enumeration
is equal to a given Enumeration
minus a given set of elements.Constructor and Description |
---|
TLcdSubEnumeration(Enumeration aEnumeration,
Hashtable aHashtable)
Constructs a new
Enumeration from the given Enumeration
minus the given elements. |
TLcdSubEnumeration(Enumeration aEnumeration,
Hashtable aHashtable,
ILcdMorphingFunction aKeyProvider)
Constructs a new
Enumeration from the given Enumeration
minus the elements that correspond to the given keys. |
Modifier and Type | Method and Description |
---|---|
void |
close()
This close method does not throw checked exceptions.
|
boolean |
hasMoreElements()
Implements
Enumeration.hasMoreElements() . |
Object |
nextElement()
Implements
Enumeration.nextElement() . |
public TLcdSubEnumeration(Enumeration aEnumeration, Hashtable aHashtable)
Enumeration
from the given Enumeration
minus the given elements. The elements are identified by means of the
equals
method.aEnumeration
- the basic Enumeration
that will be returned.aHashtable
- the Hashtable
containing the elements that
will be removed from the Enumeration
.public TLcdSubEnumeration(Enumeration aEnumeration, Hashtable aHashtable, ILcdMorphingFunction aKeyProvider)
Enumeration
from the given Enumeration
minus the elements that correspond to the given keys.aEnumeration
- the basic Enumeration
that will be returned.aHashtable
- the Hashtable
containing the keys of the
elements that will be removed from the Enumeration
.aKeyProvider
- the function that returns the key of the given object.public boolean hasMoreElements()
Enumeration.hasMoreElements()
.hasMoreElements
in interface Enumeration
public Object nextElement()
Enumeration.nextElement()
.nextElement
in interface Enumeration
public void close()
ILcdAutoCloseableEnumeration
close
in interface ILcdAutoCloseableEnumeration
close
in interface AutoCloseable