PCJ API
Version 1.2

bak.pcj.set
Class AbstractDoubleSet

java.lang.Object
  extended bybak.pcj.AbstractDoubleCollection
      extended bybak.pcj.set.AbstractDoubleSet
All Implemented Interfaces:
DoubleCollection, DoubleSet
Direct Known Subclasses:
DoubleChainedHashSet, DoubleOpenHashSet, SetToDoubleSetAdapter

public abstract class AbstractDoubleSet
extends AbstractDoubleCollection
implements DoubleSet

This class represents an abstract base for implementing sets of double 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

Constructor Summary
protected AbstractDoubleSet()
          Default constructor to be invoked by sub-classes.
 
Method Summary
 boolean equals(Object obj)
          Indicates whether this collection is equal to some object.
 int hashCode()
          Returns a hash code value for this collection.
 
Methods inherited from class bak.pcj.AbstractDoubleCollection
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 bak.pcj.DoubleCollection
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, trimToSize
 

Constructor Detail

AbstractDoubleSet

protected AbstractDoubleSet()
Default constructor to be invoked by sub-classes.

Method Detail

equals

public boolean equals(Object obj)
Description copied from interface: DoubleCollection
Indicates whether this collection is equal to some object.

Specified by:
equals in interface DoubleCollection

hashCode

public int hashCode()
Description copied from interface: DoubleCollection
Returns a hash code value for this collection.

Specified by:
hashCode in interface DoubleCollection

PCJ API
Version 1.2

Report a bug or request a feature.
Further information on the development and latest release of PCJ can be found at the project homepage.

Primitive Collections for Java is released under the GNU Lesser General Public License.
Copyright © 2002, 2003 Søren Bak. All Rights Reserved.

Hosted by SourceForge.net
SourceForge.net Logo