Class AsynchronList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.AbstractSequentialList<E>
-
- java.util.LinkedList<E>
-
- de.ipk_gatersleben.bit.bi.edal.primary_data.file.implementation.AsynchronList<E>
-
- Type Parameters:
E
- the type of the list
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Deque<E>
,java.util.List<E>
,java.util.Queue<E>
public final class AsynchronList<E> extends java.util.LinkedList<E>
AsynchronousList
implementation to provide a blocking list for thePrimaryDataDirectory.listPrimaryDataEntities()
function.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AsynchronList()
AsynchronList(java.util.Collection<? extends E> collection)
-
Method Summary
Modifier and Type Method Description protected void
checkAllElementsPresent()
protected void
checkVolatileElement(int index)
void
clear()
E
get(int index)
int
indexOf(java.lang.Object elem)
boolean
isEmpty()
boolean
isStopped()
java.util.Iterator<E>
iterator()
int
lastIndexOf(java.lang.Object o)
java.util.ListIterator<E>
listIterator()
java.util.ListIterator<E>
listIterator(int index)
void
notifyNewDataAvailable()
void
notifyNoMoreNewData()
E
remove(int index)
E
set(int index, E elem)
void
setStopped()
int
size()
beware!!!java.lang.Object[]
toArray()
-
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clone, contains, descendingIterator, element, getFirst, getLast, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, spliterator, toArray
-
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
-
-
-
-
Constructor Detail
-
AsynchronList
public AsynchronList()
-
AsynchronList
public AsynchronList(java.util.Collection<? extends E> collection)
- Parameters:
collection
- the collection to createAsynchronList
-
-
Method Detail
-
checkAllElementsPresent
protected void checkAllElementsPresent()
-
checkVolatileElement
protected void checkVolatileElement(int index)
-
clear
public void clear()
-
get
public E get(int index)
-
indexOf
public int indexOf(java.lang.Object elem)
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<E> iterator()
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
-
listIterator
public java.util.ListIterator<E> listIterator()
-
listIterator
public java.util.ListIterator<E> listIterator(int index)
-
notifyNewDataAvailable
public void notifyNewDataAvailable()
-
notifyNoMoreNewData
public void notifyNoMoreNewData()
-
remove
public E remove(int index)
-
size
public int size()
beware!!! size is not fixed, can potential increase, use iterator not loop! Otherwise, you will wait until all elements where loaded
-
toArray
public java.lang.Object[] toArray()
-
isStopped
public boolean isStopped()
-
setStopped
public void setStopped()
-
-