|
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 () |
Public Member Functions inherited from java.util.AbstractSet< E > | |
| boolean | equals (Object object) |
| int | hashCode () |
| boolean | removeAll (Collection<?> collection) |
Public Member Functions inherited from java.util.AbstractCollection< E > | |
| 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 () |
Public Member Functions inherited from java.util.Set< E > | |
| boolean | addAll (Collection<? extends E > collection) |
| boolean | containsAll (Collection<?> collection) |
| boolean | retainAll (Collection<?> collection) |
| Object [] | toArray () |
Additional Inherited Members | |
Protected Member Functions inherited from java.util.AbstractSet< E > | |
| AbstractSet () | |
Protected Member Functions inherited from java.util.AbstractCollection< E > | |
| 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 >.
1.8.13