#include <coherence/util/AbstractSet.hpp>
Inherits AbstractCollection, and Set.
Inherited by NullImplementation::NullSet.
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 | |||
| Compare the specified object with this set for equality.
Return
| ||||
| virtual size32_t | hashCode () const | |||
| Return the hash code value for this set.
The hash code of a set is defined to be the sum of the hash codes of the elements in the set, where the hashcode of a
| ||||