Class ConcurrentArray<E>
java.lang.Object
org.eclipse.net4j.util.collection.ConcurrentArray<E>
- Direct Known Subclasses:
ConcurrentArray.DuplicateCounter
,ConcurrentArray.Unique
,FastList
- Since:
- 3.2
- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
protected void
elementAdded
(E element) Synchronized throughadd(Object)
.protected void
elementRemoved
(E element) Synchronized throughremove(Object)
.protected boolean
protected void
Synchronized throughadd(Object)
.E[]
get()
Returns the elements, nevernull
.boolean
isEmpty()
protected void
Synchronized throughremove(Object)
.protected abstract E[]
newArray
(int length) Synchronized throughadd(Object)
orremove(Object)
.boolean
protected boolean
-
Field Details
-
elements
-
-
Constructor Details
-
ConcurrentArray
public ConcurrentArray()
-
-
Method Details
-
isEmpty
public boolean isEmpty() -
get
Returns the elements, nevernull
. -
contains
- Since:
- 3.13
-
addUnique
- Since:
- 3.13
-
add
-
remove
-
validate
-
equals
- Since:
- 3.13
-
elementAdded
Synchronized throughadd(Object)
.- Since:
- 3.13
-
elementRemoved
Synchronized throughremove(Object)
.- Since:
- 3.13
-
firstElementAdded
protected void firstElementAdded()Synchronized throughadd(Object)
. -
lastElementRemoved
protected void lastElementRemoved()Synchronized throughremove(Object)
. -
newArray
Synchronized throughadd(Object)
orremove(Object)
.
-