Package java.util
Class AbstractSet

Public Method equals

boolean equals(Object o)

Overrides:

_INSERT_METHOD_SIGNATURE_HERE_

Description:

Compares the specified object with this set for equality. Returns true if the given object is also a set, the two sets have the same size, and every member of the given set is contained in this set.

This implementation first checks if the specified object is this set; if so it returns true. Then, it checks if the specified object is a set whose size is identical to the size of this set; if not, it it returns false. If so, it returns containsAll((Collection) o).