DthingApi
|
Public Member Functions | |
boolean | equals (Object object) |
int | hashCode () |
boolean | removeAll (Collection<?> collection) |
![]() | |
boolean | add (E object) |
boolean | addAll (Collection<? extends E > collection) |
void | clear () |
boolean | contains (Object object) |
boolean | containsAll (Collection<?> collection) |
boolean | isEmpty () |
abstract Iterator< E > | iterator () |
boolean | remove (Object object) |
boolean | removeAll (Collection<?> collection) |
boolean | retainAll (Collection<?> collection) |
abstract int | size () |
Object [] | toArray () |
String | toString () |
![]() | |
boolean | add (E object) |
boolean | addAll (Collection<? extends E > collection) |
void | clear () |
boolean | contains (Object object) |
boolean | containsAll (Collection<?> collection) |
boolean | isEmpty () |
Iterator< E > | iterator () |
boolean | remove (Object object) |
boolean | retainAll (Collection<?> collection) |
int | size () |
Object [] | toArray () |
Protected Member Functions | |
AbstractSet () | |
![]() | |
AbstractCollection () | |
An 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().
|
inlineprotected |
Constructs a new instance of this AbstractSet.
|
inline |
Compares the specified object to this Set and returns true if they are equal. The object must be an instance of Set and contain the same objects.
object | the object to compare with this set. |
Implements java.util.Set< E >.
|
inline |
Returns the hash code for this set. Two set which are equal must return the same value. This implementation calculates the hash code by adding each element's hash code.
Implements java.util.Set< E >.
|
inline |
Removes all occurrences in this collection which are contained in the specified collection.
collection | the collection of objects to remove. |
UnsupportedOperationException | if removing from this collection is not supported. |
Implements java.util.Set< E >.