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
private class CharKeyOpenHashMap.KeySet extends AbstractCharSet
-
-
Constructor Summary
Constructors Modifier Constructor Description privateKeySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Clears this collection.booleancontains(char v)Indicates whether this collection contains a specified element.CharIteratoriterator()Returns an iterator over this collection.booleanremove(char v)Removes a specified element from this collection.intsize()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
-
-
-
-
Method Detail
-
clear
public void clear()
Description copied from interface:CharCollectionClears this collection.- Specified by:
clearin interfaceCharCollection- Overrides:
clearin classAbstractCharCollection
-
contains
public boolean contains(char v)
Description copied from interface:CharCollectionIndicates whether this collection contains a specified element.- Specified by:
containsin interfaceCharCollection- Overrides:
containsin classAbstractCharCollection- Parameters:
v- the element to test for containment.- Returns:
- true if v is contained in this collection; returns false otherwise.
- See Also:
CharCollection.containsAll(CharCollection)
-
iterator
public CharIterator iterator()
Description copied from interface:CharCollectionReturns an iterator over this collection.- Returns:
- an iterator over this collection.
-
remove
public boolean remove(char v)
Description copied from interface:CharCollectionRemoves a specified element from this collection.- Specified by:
removein interfaceCharCollection- Overrides:
removein 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:CharCollectionReturns the number of elements in this collection.- Specified by:
sizein interfaceCharCollection- Overrides:
sizein classAbstractCharCollection- Returns:
- the number of elements in this collection.
-
-