E
- Type of itemspublic class LockableObservableCollection<E>
extends com.scichart.core.observable.ObservableCollection<E>
ObservableCollection
with ReadWriteLock
to ensure thread safetyModifier and Type | Field and Description |
---|---|
ReadWriteLock |
lock |
Constructor and Description |
---|
LockableObservableCollection()
Creates a new
LockableObservableCollection instance |
LockableObservableCollection(java.util.Collection<? extends E> collection)
Creates a new
LockableObservableCollection instance which contains the elements of
the specified collection. |
LockableObservableCollection(int capacity)
Creates a new
LockableObservableCollection instance |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E object) |
void |
add(int location,
E object) |
boolean |
addAll(java.util.Collection<? extends E> collection) |
boolean |
addAll(int location,
java.util.Collection<? extends E> collection) |
void |
clear() |
E |
remove(int location) |
boolean |
remove(java.lang.Object object) |
boolean |
removeAll(java.util.Collection<?> collection) |
protected void |
removeRange(int fromIndex,
int toIndex) |
boolean |
retainAll(java.util.Collection<?> collection) |
E |
set(int location,
E object) |
addObserver, removeObserver
clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, removeIf, replaceAll, size, sort, spliterator, subList, toArray, toArray, trimToSize
public final ReadWriteLock lock
public LockableObservableCollection(int capacity)
LockableObservableCollection
instancecapacity
- The initial capacitypublic LockableObservableCollection()
LockableObservableCollection
instancepublic LockableObservableCollection(java.util.Collection<? extends E> collection)
LockableObservableCollection
instance which contains the elements of
the specified collection.collection
- The collection with items to addpublic void add(int location, E object)
public boolean add(E object)
public boolean addAll(int location, java.util.Collection<? extends E> collection)
public boolean addAll(java.util.Collection<? extends E> collection)
public E remove(int location)
public boolean removeAll(java.util.Collection<?> collection)
public boolean retainAll(java.util.Collection<?> collection)
protected void removeRange(int fromIndex, int toIndex)
removeRange
in class com.scichart.core.observable.ObservableCollection<E>
public boolean remove(java.lang.Object object)