public class ArraySet<E>
extends java.util.AbstractSet<E>
implements java.io.Serializable
| Constructor and Description |
|---|
ArraySet()
Constructs an ArraySet.
|
ArraySet(E... elements)
Constructs an ArraySet with the specified elements.
|
ArraySet(int initialSize)
Constructs an ArraySet with specified initial size of backing array.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E e)
Adds element to set.
|
java.util.Iterator<E> |
iterator()
Returns iterator over elements of the set.
|
int |
size()
Returns size of set.
|
addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic ArraySet()
public ArraySet(int initialSize)
initialSize - initial size of the backing array.public ArraySet(E... elements)
elements - the elements to be put in the set.