| Modifier | Constructor and Description |
|---|---|
protected |
KeySet() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears this data structure by removing all content from it.
|
boolean |
contains(java.lang.Object obj)
Checks whether
obj (or another instance equal to obj in terms of
java.lang.Object.equals(Object) ) is already present within this data structure
instance and returns true only if this is the case. |
Iterator |
iterator()
Returns an iterator over all items stored within this data structure instance.
|
boolean |
remove(java.lang.Object obj)
Removes
obj from this data structure. |
int |
size()
Returns the current size of the data structure.
|
containsAll, equals, getClassShortName, hashCodepublic Iterator iterator()
DataStructureiterator in class DataStructurepublic void clear()
DataStructureclear in class DataStructurepublic boolean contains(java.lang.Object obj)
DataStructureobj (or another instance equal to obj in terms of
java.lang.Object.equals(Object) ) is already present within this data structure
instance and returns true only if this is the case.contains in class DataStructureobj - the object to check the presence oftrue if obj is contained by this instance, false if notpublic boolean remove(java.lang.Object obj)
DataStructureobj from this data structure. Returns true if obj
was actually present and thus it was really removed (i.e. this instance was modified by
the method call).remove in class DataStructureobj - the object to removetrue only if obj was actually removedpublic int size()
DataStructuresize in class DataStructure