| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if addedthe element key)Implements org. returns true if element is added |
| public boolean | Returns: true if any element is addedthe Collection to add c)Implements org. returns true if any element is added |
| public boolean | Returns: true if any element is addedthe array of elements to add keys)returns true if any element is added |
| public boolean | Returns: true if any element was addedarray of keys to add keys, int first index to add start, int limit of index to add limit)returns true if any added |
| public int | |
| public boolean | |
| public boolean | |
| public E | |
| public int | |
| public E | |
| public Iterator | |
| public boolean | Returns: true if removedObject to remove key)Implements org. returns true if removed |
| public boolean | Returns: true if all removedCollection of elements to remove c)returns true if all were removed |
| public boolean | |
| public <T> T[] | |
| public Object[] | |
| public String | Returns: String representationOverrides java. Returns a String like "[Drei, zwei, Eins]", exactly like java.util.HashSet. |
| HashSet | back to summary |
|---|---|
| public HashSet() | |
| HashSet | back to summary |
|---|---|
| public HashSet(int initialCapacity) throws IllegalArgumentException | |
| HashSet | back to summary |
|---|---|
| public HashSet(int initialCapacity, ObjectComparator<E> comparator) throws IllegalArgumentException | |
| HashSet | back to summary |
|---|---|
| public HashSet(E[] valueList) | |
| add | back to summary |
|---|---|
| public boolean add(E key) Implements org. returns true if element is added
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(Collection<? extends E> c) Implements org. returns true if any element is added
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(E[] keys) returns true if any element is added
| |
| addAll | back to summary |
|---|---|
| public boolean addAll(E[] keys, int start, int limit) returns true if any added
| |
| capacity | back to summary |
|---|---|
| public int capacity() Overrides org. | |
| contains | back to summary |
|---|---|
| public boolean contains(Object key) Implements org. | |
| containsAll | back to summary |
|---|---|
| public boolean containsAll(Collection<E> col) | |
| get | back to summary |
|---|---|
| public E get(E key) | |
| getCommonElementCount | back to summary |
|---|---|
| public int getCommonElementCount(Set<E> other) | |
| getOrAdd | back to summary |
|---|---|
| public E getOrAdd(E key) returns existing value or null if added can be used as an Object cache | |
| iterator | back to summary |
|---|---|
| public Iterator Implements org. | |
| remove | back to summary |
|---|---|
| public boolean remove(E key) Implements org. returns true if removed
| |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(Collection<E> c) returns true if all were removed
| |
| removeAll | back to summary |
|---|---|
| public boolean removeAll(E[] keys) returns true if all were removed
| |
| toArray | back to summary |
|---|---|
| public <T> T[] toArray(T[] a) | |
| toArray | back to summary |
|---|---|
| public Object[] toArray() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a String like "[Drei, zwei, Eins]", exactly like java.util.HashSet.
| |