|
Build 1.0_r1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractSet
public abstract class AbstractSet
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 Collectionequals in interface Setequals in class Objectobject - the object to compare with this object
hashCode()public int hashCode()
hashCode in interface CollectionhashCode in interface SethashCode in class Objectequals(Object)public boolean removeAll(Collection collection)
removeAll in interface CollectionremoveAll in interface SetremoveAll in class AbstractCollectioncollection - the Collection of objects to remove
UnsupportedOperationException - when removing from this Collection is not supported
|
Build 1.0_r1 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||