Package com.uwyn.jhighlight.pcj.set
Class AbstractCharSet
- java.lang.Object
-
- com.uwyn.jhighlight.pcj.AbstractCharCollection
-
- com.uwyn.jhighlight.pcj.set.AbstractCharSet
-
- All Implemented Interfaces:
CharCollection,CharSet
- Direct Known Subclasses:
CharKeyOpenHashMap.KeySet
public abstract class AbstractCharSet extends AbstractCharCollection implements CharSet
This class represents an abstract base for implementing sets of char values. All operations that can be implemented using iterators and the get() and set() methods are implemented as such. In most cases, this is hardly an efficient solution, and at least some of those methods should be overridden by sub-classes.- Since:
- 1.0
- Version:
- 1.1 2003/1/10
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractCharSet()Default constructor to be invoked by sub-classes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Indicates whether this collection is equal to some object.inthashCode()Returns a hash code value for this collection.-
Methods inherited from class com.uwyn.jhighlight.pcj.AbstractCharCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, 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, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, trimToSize
-
-
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
Description copied from interface:CharCollectionIndicates whether this collection is equal to some object.- Specified by:
equalsin interfaceCharCollection- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- the object with which to compare this collection.- Returns:
- true if this collection is equals to obj; returns false otherwise.
-
hashCode
public int hashCode()
Description copied from interface:CharCollectionReturns a hash code value for this collection.- Specified by:
hashCodein interfaceCharCollection- Overrides:
hashCodein classjava.lang.Object- Returns:
- a hash code value for this collection.
-
-