|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractSet<E>
public abstract class AbstractSet<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().
| Constructor Summary | |
|---|---|
protected |
AbstractSet()
Constructs a new instance of this AbstractSet. |
| Method Summary | |
|---|---|
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 |
|---|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, retainAll, size, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Set |
|---|
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, retainAll, size, toArray, toArray |
| Constructor Detail |
|---|
protected AbstractSet()
| Method Detail |
|---|
public boolean equals(Object object)
equals in interface Collection<E>equals in interface Set<E>equals in class Objectobject - the object to compare with this object
hashCode()public int hashCode()
hashCode in interface Collection<E>hashCode in interface Set<E>hashCode in class Objectequals(java.lang.Object)public boolean removeAll(Collection<?> collection)
removeAll in interface Collection<E>removeAll in interface Set<E>removeAll in class AbstractCollection<E>collection - the Collection of objects to remove
UnsupportedOperationException - when removing from this Collection is not supported
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||