E - public class ArrayHashSet<E> extends Object implements Set<E>
| Constructor and Description |
|---|
ArrayHashSet() |
ArrayHashSet(Class<? extends Set> setType) |
ArrayHashSet(Collection<? extends E> coll) |
ArrayHashSet(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c)
Adds the all.
|
void |
clear()
Clear.
|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isEmpty()
Checks if is empty.
|
Iterator<E> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c)
Removes the all.
|
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
spliteratorparallelStream, removeIf, streampublic ArrayHashSet()
public ArrayHashSet(int initialCapacity)
public ArrayHashSet(Collection<? extends E> coll)
public boolean add(E e)
public boolean addAll(Collection<? extends E> c)
public boolean remove(Object o)
public boolean removeAll(Collection<?> c)
public boolean retainAll(Collection<?> c)
public boolean contains(Object o)
public boolean containsAll(Collection<?> c)
containsAll in interface Collection<E>containsAll in interface Set<E>c - public Object[] toArray()
public <T> T[] toArray(T[] a)
public int size()
public boolean isEmpty()
public void clear()
public int hashCode()
public boolean equals(Object obj)
Copyright © 2021. All rights reserved.