
public abstract class ConcurrentArray<E> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConcurrentArray.DuplicateCounter<E> |
static class |
ConcurrentArray.Unique<E> |
| Constructor and Description |
|---|
ConcurrentArray() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E element) |
protected void |
firstElementAdded()
Synchronized through
add(Object). |
E[] |
get()
Returns the elements, never
null. |
boolean |
isEmpty() |
protected void |
lastElementRemoved()
Synchronized through
remove(Object). |
protected abstract E[] |
newArray(int length)
Synchronized through
add(Object) or remove(Object). |
boolean |
remove(E element) |
protected boolean |
validate(E element)
Synchronized through
add(Object). |
protected E[] elements
public boolean isEmpty()
public E[] get()
null.public void add(E element)
public boolean remove(E element)
protected boolean validate(E element)
add(Object).protected void firstElementAdded()
add(Object).protected void lastElementRemoved()
remove(Object).protected abstract E[] newArray(int length)
add(Object) or remove(Object).Copyright (c) 2011-2014 Eike Stepper (Berlin, Germany) and others.