Package com.luciad.util.enumeration
Class TLcdSubEnumeration
java.lang.Object
com.luciad.util.enumeration.TLcdSubEnumeration
- All Implemented Interfaces:
ILcdAutoCloseableEnumeration
,AutoCloseable
,Enumeration
This
Enumeration
is equal to a given Enumeration
minus a given set of elements.-
Constructor Summary
ConstructorDescriptionTLcdSubEnumeration
(Enumeration aEnumeration, Hashtable aHashtable) Constructs a newEnumeration
from the givenEnumeration
minus the given elements.TLcdSubEnumeration
(Enumeration aEnumeration, Hashtable aHashtable, ILcdMorphingFunction aKeyProvider) Constructs a newEnumeration
from the givenEnumeration
minus the elements that correspond to the given keys. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
This close method does not throw checked exceptions.boolean
ImplementsEnumeration.hasMoreElements()
.ImplementsEnumeration.nextElement()
.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
-
TLcdSubEnumeration
Constructs a newEnumeration
from the givenEnumeration
minus the given elements. The elements are identified by means of theequals
method.- Parameters:
aEnumeration
- the basicEnumeration
that will be returned.aHashtable
- theHashtable
containing the elements that will be removed from theEnumeration
.
-
TLcdSubEnumeration
public TLcdSubEnumeration(Enumeration aEnumeration, Hashtable aHashtable, ILcdMorphingFunction aKeyProvider) Constructs a newEnumeration
from the givenEnumeration
minus the elements that correspond to the given keys.- Parameters:
aEnumeration
- the basicEnumeration
that will be returned.aHashtable
- theHashtable
containing the keys of the elements that will be removed from theEnumeration
.aKeyProvider
- the function that returns the key of the given object.
-
-
Method Details
-
hasMoreElements
public boolean hasMoreElements()ImplementsEnumeration.hasMoreElements()
.- Specified by:
hasMoreElements
in interfaceEnumeration
-
nextElement
ImplementsEnumeration.nextElement()
.- Specified by:
nextElement
in interfaceEnumeration
-
close
public void close()Description copied from interface:ILcdAutoCloseableEnumeration
This close method does not throw checked exceptions.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceILcdAutoCloseableEnumeration
-