org.eclipse.net4j.util.collection
Class ConcurrentArray<E>
java.lang.Object
org.eclipse.net4j.util.collection.ConcurrentArray<E>
- Direct Known Subclasses:
- ConcurrentArray.DuplicateCounter, ConcurrentArray.Unique, FastList
- public abstract class ConcurrentArray<E>
- extends Object
- Since:
- 3.2
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
elements
protected E[] elements
ConcurrentArray
public ConcurrentArray()
isEmpty
public boolean isEmpty()
get
public E[] get()
- Returns the elements, never
null.
add
public void add(E element)
remove
public boolean remove(E element)
validate
protected boolean validate(E element)
firstElementAdded
protected void firstElementAdded()
lastElementRemoved
protected void lastElementRemoved()
newArray
protected abstract E[] newArray(int length)
Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.