Inherited by AbstractSet
[virtual], and WrapperCollections::AbstractWrapperSet
List of all members.
As implied by its name, this interface models the mathematical set abstraction.
Set interface places additional stipulations on the contracts of all constructors of the
Set implementations and on the contracts of the
The additional stipulation on constructors is, not surprisingly, that all constructors must create a set that contains no duplicate elements.
|Set Handle definition. |
|Set View definition. |
|Set Holder definition. |
Public Member Functions
|virtual bool||equals (Object::View v) const =0|
|Compare the specified object with this set for equality. |
|virtual size32_t||hashCode () const =0|
|Return the hash code value for this set. |
|virtual bool equals||(||Object::View||v||)|| const
Compare the specified object with this set for equality.
true if the specified object is also a set, the two sets have the same size, and every member of the specified set is contained in this set (or equivalently, every member of this set is contained in the specified set). This definition ensures that the equals() method works properly across different implementations of the Set interface.
|v||Object to be compared for equality with this set.|
trueiff the specified Object is equal to this set.
|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
NULL element is defined to be zero. This ensures that
s1->equals(s2) implies that
s1->hashCode() == s2->hashCode() for any two sets
s2, as required by the general contract of Object::hashCode().
Reimplemented from Object.