#include <coherence/util/AbstractSet.hpp>
Inherits AbstractCollection, and Set.
Inherited by DeltaSet, NullImplementation::NullSet, and SubSet.
Set
interface to minimize the effort required to implement this interface.
The process of implementing a set by extending this class is identical to that of implementing a Collection by extending AbstractCollection, except that all of the methods and constructors in subclasses of this class must obey the additional constraints imposed by the Set
interface (for instance, the add
method must not permit addition of multiple instances of an object to a set).
Public Types | |
typedef spec::Handle | Handle |
AbstractSet Handle definition. | |
typedef spec::View | View |
AbstractSet View definition. | |
typedef spec::Holder | Holder |
AbstractSet Holder definition. | |
Public Member Functions | |
virtual bool | equals (Object::View v) const |
virtual size32_t | hashCode () const |
Return a hash code value for the Object. This method is supported for the benefit of hash-based containers.
The general contract of
The default implementation is identity based.
|