Public Methods | |
ArraySet () | |
ArraySet (Object[] elements) | |
boolean | add (Object e) |
void | clear () |
boolean | contains (Object obj) |
Iterator | iterator () |
int | size () |
Object[] | toArray () |
void | toArray (Object[] array) |
Private Methods | |
void | doubleCapacity () |
void | removeElementAt (int index) |
Private Attributes | |
int | numElements |
int | maxElements |
Object[] | elements |
Static Private Attributes | |
final int | DEFAULT_SIZE = 8 |
Definition at line 80 of file ArraySet.java.
|
Create a set which contains the given elements. Definition at line 132 of file ArraySet.java. |