| java.util.AbstractSet
AbstractSet | abstract public class AbstractSet extends AbstractCollection implements Set<E>(Code) | | AbstractSet is an abstract implementation of the Set interface. This
Implementation does not support adding. A subclass must implement the
abstract methods iterator() and size().
since: 1.2 |
Constructor Summary | |
protected | AbstractSet() Constructs a new instance of this AbstractSet. |
Method Summary | |
public boolean | equals(Object object) Compares the specified object to this Set and answer if they are equal. | public int | hashCode() Answers an integer hash code for the receiver. | public boolean | removeAll(Collection> collection) Removes all occurrences in this Collection of each object in the
specified Collection. |
AbstractSet | protected AbstractSet()(Code) | | Constructs a new instance of this AbstractSet.
|
equals | public boolean equals(Object object)(Code) | | Compares the specified object to this Set and answer if they are equal.
The object must be an instance of Set and contain the same objects.
Parameters: object - the object to compare with this object true if the specified object is equal to this Set, falseotherwise See Also: AbstractSet.hashCode |
hashCode | public int hashCode()(Code) | | Answers an integer hash code for the receiver. Objects which are equal
answer the same value for this method.
the receiver's hash See Also: AbstractSet.equals |
removeAll | public boolean removeAll(Collection> collection)(Code) | | Removes all occurrences in this Collection of each object in the
specified Collection.
Parameters: collection - the Collection of objects to remove true if this Collection is modified, false otherwise exception: UnsupportedOperationException - when removing from this Collection is not supported |
|
|