Package com.uwyn.jhighlight.pcj.map
Class CharKeyOpenHashMap.KeySet
java.lang.Object
com.uwyn.jhighlight.pcj.AbstractCharCollection
com.uwyn.jhighlight.pcj.set.AbstractCharSet
com.uwyn.jhighlight.pcj.map.CharKeyOpenHashMap.KeySet
- All Implemented Interfaces:
CharCollection
,CharSet
- Enclosing class:
CharKeyOpenHashMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears this collection.boolean
contains
(char v) Indicates whether this collection contains a specified element.iterator()
Returns an iterator over this collection.boolean
remove
(char v) Removes a specified element from this collection.int
size()
Returns the number of elements in this collection.Methods inherited from class com.uwyn.jhighlight.pcj.set.AbstractCharSet
equals, hashCode
Methods inherited from class com.uwyn.jhighlight.pcj.AbstractCharCollection
add, addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString, trimToSize
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.uwyn.jhighlight.pcj.CharCollection
add, addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, trimToSize
-
Constructor Details
-
KeySet
private KeySet()
-
-
Method Details
-
clear
public void clear()Description copied from interface:CharCollection
Clears this collection.- Specified by:
clear
in interfaceCharCollection
- Overrides:
clear
in classAbstractCharCollection
-
contains
public boolean contains(char v) Description copied from interface:CharCollection
Indicates whether this collection contains a specified element.- Specified by:
contains
in interfaceCharCollection
- Overrides:
contains
in classAbstractCharCollection
- Parameters:
v
- the element to test for containment.- Returns:
- true if v is contained in this collection; returns false otherwise.
- See Also:
-
iterator
Description copied from interface:CharCollection
Returns an iterator over this collection.- Returns:
- an iterator over this collection.
-
remove
public boolean remove(char v) Description copied from interface:CharCollection
Removes a specified element from this collection.- Specified by:
remove
in interfaceCharCollection
- Overrides:
remove
in classAbstractCharCollection
- Parameters:
v
- the char value to remove from this collection.- Returns:
- true if this collection was modified as a result of removing v; returns false otherwise.
-
size
public int size()Description copied from interface:CharCollection
Returns the number of elements in this collection.- Specified by:
size
in interfaceCharCollection
- Overrides:
size
in classAbstractCharCollection
- Returns:
- the number of elements in this collection.
-