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
ConstructorsConstructorDescriptionTLcdSubEnumeration(Enumeration aEnumeration, Hashtable aHashtable) Constructs a newEnumerationfrom the givenEnumerationminus the given elements.TLcdSubEnumeration(Enumeration aEnumeration, Hashtable aHashtable, ILcdMorphingFunction aKeyProvider) Constructs a newEnumerationfrom the givenEnumerationminus the elements that correspond to the given keys. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()This close method does not throw checked exceptions.booleanImplementsEnumeration.hasMoreElements().ImplementsEnumeration.nextElement().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
-
TLcdSubEnumeration
Constructs a newEnumerationfrom the givenEnumerationminus the given elements. The elements are identified by means of theequalsmethod.- Parameters:
aEnumeration- the basicEnumerationthat will be returned.aHashtable- theHashtablecontaining the elements that will be removed from theEnumeration.
-
TLcdSubEnumeration
public TLcdSubEnumeration(Enumeration aEnumeration, Hashtable aHashtable, ILcdMorphingFunction aKeyProvider) Constructs a newEnumerationfrom the givenEnumerationminus the elements that correspond to the given keys.- Parameters:
aEnumeration- the basicEnumerationthat will be returned.aHashtable- theHashtablecontaining 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:
hasMoreElementsin interfaceEnumeration
-
nextElement
ImplementsEnumeration.nextElement().- Specified by:
nextElementin interfaceEnumeration
-
close
public void close()Description copied from interface:ILcdAutoCloseableEnumerationThis close method does not throw checked exceptions.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceILcdAutoCloseableEnumeration
-