Android
java.util
public abstract class

java.util.AbstractSet<E>

java.lang.Object
java.util.AbstractCollection<E> Collection<E>
java.util.AbstractSet<E> Set<E>

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().

Known Direct Subclasses
Known Indirect Subclasses

Summary

Protected Constructors

            AbstractSet()
Constructs a new instance of this AbstractSet.

Public Methods

          boolean  equals(Object object)
Compares the specified object to this Set and answer if they are equal.
          int  hashCode()
Returns an integer hash code for the receiver.
          boolean  removeAll(Collection<?> collection)
Removes all occurrences in this Collection of each object in the specified Collection.
Methods inherited from class java.util.AbstractCollection
Methods inherited from class java.lang.Object
Methods inherited from interface java.lang.Iterable
Methods inherited from interface java.util.Collection
Methods inherited from interface java.util.Set

Details

Protected Constructors

protected AbstractSet()

Constructs a new instance of this AbstractSet.

Public Methods

public boolean equals(Object object)

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

Returns

  • true if the specified object is equal to this Set, false otherwise

See Also

public int hashCode()

Returns an integer hash code for the receiver. Objects which are equal answer the same value for this method.

Returns

  • the receiver's hash

See Also

public boolean removeAll(Collection<?> collection)

Removes all occurrences in this Collection of each object in the specified Collection.

Parameters

collection the Collection of objects to remove

Returns

  • true if this Collection is modified, false otherwise

Throws

UnsupportedOperationException when removing from this Collection is not supported
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56