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
- Since:
- 1.0
- Version:
- 1.3 21-08-2003 19:45
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clears this collection.booleancontains(char v) Indicates whether this collection contains a specified element.iterator()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 AbstractCharSet
equals, hashCodeMethods inherited from class AbstractCharCollection
add, addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString, trimToSizeMethods inherited from interface 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: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:
-
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.
-