public class InsertOnlyArray<E>
extends java.lang.Object
| Constructor and Description |
|---|
InsertOnlyArray(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
int |
add(E newElement)
Add an element to the array using a lock.
|
E |
get(int index)
Get an element from the array.
|
int |
getIndex(E element)
Returns the index of an element.
|
public E get(int index)
public int getIndex(E element)
element - public int add(E newElement)
newElement -