|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.utils.SnapshotArray<T>
T - public class SnapshotArray<T>
SnapshotArray is synchronized list that provides copy-on-write-arraylist of its contents.
| Constructor Summary | |
|---|---|
SnapshotArray(Class<T> componentType)
Construct new Listener List |
|
| Method Summary | |
|---|---|
void |
add(T item)
add. |
void |
clear()
clear. |
T[] |
getArray()
Get a snapshot of the contents. |
boolean |
isEmpty()
isEmpty. |
boolean |
remove(T item)
Removes the first occurance of the item. |
int |
size()
size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SnapshotArray(Class<T> componentType)
componentType - the class of the listener type| Method Detail |
|---|
public T[] getArray()
public void add(T item)
add.
item - a T object.public boolean remove(T item)
item - an item
public int size()
size.
public boolean isEmpty()
isEmpty.
public void clear()
clear.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||