DthingApi
|
Public Member Functions | |
HashSet () | |
HashSet (int capacity) | |
HashSet (int capacity, float loadFactor) | |
HashSet (Collection<? extends E > collection) | |
boolean | add (E object) |
void | clear () |
Object | clone () |
boolean | contains (Object object) |
boolean | isEmpty () |
Iterator< E > | iterator () |
boolean | remove (Object object) |
int | size () |
![]() | |
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 | addAll (Collection<? extends E > collection) |
boolean | containsAll (Collection<?> collection) |
boolean | retainAll (Collection<?> collection) |
Object [] | toArray () |
Additional Inherited Members | |
![]() | |
AbstractSet () | |
![]() | |
AbstractCollection () | |
HashSet is an implementation of a Set. All optional operations (adding and removing) are supported. The elements can be any objects.
|
inline |
|
inline |
|
inline |
Constructs a new instance of
with the specified capacity and load factor.
capacity | the initial capacity. |
loadFactor | the initial load factor. |
|
inline |
Constructs a new instance of
containing the unique elements in the specified collection.
collection | the collection of elements to add. |
|
inline |
Adds the specified object to this
if not already present.
object | the object to add. |
Implements java.util.Set< E >.
|
inline |
|
inline |
Returns a new
with the same elements and size as this
.
|
inline |
Searches this
for the specified object.
object | the object to search for. |
Implements java.util.Set< E >.
|
inline |
Returns true if this
has no elements, false otherwise.
Implements java.util.Set< E >.
|
inline |
|
inline |
Removes the specified object from this
.
object | the object to remove. |
Implements java.util.Set< E >.
|
inline |
Returns the number of elements in this
.
Implements java.util.Set< E >.