| Modifier and Type | Field and Description |
|---|---|
| protected RuntimeException | exception
Used to throw exception that occur from the concurrent population thread. |
| protected boolean | isComplete
Store if the list is fully populated. |
| Access | Constructor and Description |
|---|---|
| public | ThreadCursoredList()
Construct an empty list so that its internal data array
has size |
| public | ThreadCursoredList(int initialCapacity)
Construct an empty list with the specified initial capacity and with its capacity increment equal to zero. |
| public | ThreadCursoredList(int initialCapacity, int capacityIncrement)
Construct an empty list with the specified initial capacity and capacity increment. |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | add(int
index at which the specified element is to be inserted index, E element to be inserted element)Overrides java. Implements java. |
| public synchronized boolean | add(E
element to be appended to this Vector element)Overrides java. Implements java. |
| public synchronized boolean | addAll(int
index at which to insert the first element from the
specified collection index, Collection<? extends E> elements to be inserted into this Vector collection)Overrides java. Implements java. |
| public synchronized boolean | addAll(Collection<? extends E>
elements to be inserted into this Vector collection)Overrides java. Implements java. |
| public synchronized void | addElement(E
the component to be added object)Overrides java. |
| public synchronized void | clear()
Overrides java. Implements java. |
| public synchronized Object | |
| public synchronized boolean | contains(Object
element whose presence in this vector is to be tested element)Overrides java. Implements java. |
| public synchronized boolean | containsAll(Collection<?>
a collection whose elements will be tested for containment
in this Vector collection)Overrides java. Implements java. |
| public synchronized void | copyInto(Object[]
the array into which the components get copied array)Overrides java. |
| public synchronized E | elementAt(int
an index into this vector index)Overrides java. |
| public Enumeration | |
| public synchronized boolean | equals(Object
the Object to be compared for equality with this Vector object)Overrides java. Implements java. |
| public synchronized E | |
| public synchronized E | get(int
index of the element to return index)Overrides java. Implements java. |
| public RuntimeException | |
| protected int | |
| public boolean | |
| public synchronized int | hashCode()
Overrides java. Implements java. |
| public int | indexOf(Object
element to search for element)Overrides java. Implements java. |
| public synchronized int | indexOf(Object
element to search for element, int index to start searching from index)Overrides java. |
| public synchronized void | insertElementAt(E
the component to insert element, int where to insert the new component index)Overrides java. |
| public synchronized boolean | |
| public boolean | isEmpty()
Overrides java. Implements java. |
| public Iterator | iterator()
Overrides java. Implements java. |
| public synchronized E | |
| public int | lastIndexOf(Object
element to search for element)Overrides java. Implements java. |
| public synchronized int | lastIndexOf(Object
element to search for element, int index to start searching backwards from index)Overrides java. |
| public ListIterator | listIterator()
Overrides java. Implements java. |
| public ListIterator | listIterator(final int
index of the first element to be returned from the
list iterator (by a call to index)next)Overrides java. Implements java. |
| public synchronized E | remove(int
the index of the element to be removed index)Overrides java. Implements java. |
| public boolean | remove(Object
element to be removed from this Vector, if present element)Overrides java. Implements java. |
| public synchronized boolean | removeAll(Collection<?>
a collection of elements to be removed from the Vector collection)Overrides java. Implements java. |
| public synchronized void | |
| public synchronized boolean | removeElement(Object
the component to be removed element)Overrides java. |
| public synchronized void | removeElementAt(int
the index of the object to remove index)Overrides java. |
| public synchronized boolean | retainAll(Collection<?>
a collection of elements to be retained in this Vector
(all other elements are removed) collection)Overrides java. Implements java. |
| public synchronized E | set(int
index of the element to replace index, E element to be stored at the specified position element)Overrides java. Implements java. |
| public synchronized void | setElementAt(E
what the component is to be set to element, int the specified index index)Overrides java. |
| public synchronized void | |
| public int | size()
Overrides java. Implements java. |
| public List | subList(int
low endpoint (inclusive) of the subList fromIndex, int high endpoint (exclusive) of the subList toIndex)Overrides java. Implements java. |
| public synchronized void | throwException(RuntimeException exception)
Record that the population thread hit an exception, that should be thrown to the processing thread on the next access. |
| public synchronized Object[] | toArray()
Overrides java. Implements java. |
| public synchronized <T> T[] | toArray(T[]
the array into which the elements of the Vector are to
be stored, if it is big enough; otherwise, a new array of the
same runtime type is allocated for this purpose. array)Overrides java. Implements java. |
| public synchronized String | |
| public synchronized void | |
| public synchronized void | |
| public synchronized void |
| exception | back to summary |
|---|---|
| protected RuntimeException exception Used to throw exception that occur from the concurrent population thread. | |
| isComplete | back to summary |
|---|---|
| protected boolean isComplete Store if the list is fully populated. | |
| ThreadCursoredList | back to summary |
|---|---|
| public ThreadCursoredList() Construct an empty list so that its internal data array
has size | |
| ThreadCursoredList | back to summary |
|---|---|
| public ThreadCursoredList(int initialCapacity) Construct an empty list with the specified initial capacity and with its capacity increment equal to zero. | |
| ThreadCursoredList | back to summary |
|---|---|
| public ThreadCursoredList(int initialCapacity, int capacityIncrement) Construct an empty list with the specified initial capacity and capacity increment. | |
| add | back to summary |
|---|---|
| public synchronized void add(int index, E element) Overrides java. Implements java. Add and notify any waiters that there are new elements.
| |
| add | back to summary |
|---|---|
| public synchronized boolean add(E element) Overrides java. Implements java. Add and notify any waiters that there are new elements.
| |
| addAll | back to summary |
|---|---|
| public synchronized boolean addAll(int index, Collection<? extends E> collection) Overrides java. Implements java. Add and notify any waiters that there are new elements.
| |
| addAll | back to summary |
|---|---|
| public synchronized boolean addAll(Collection<? extends E> collection) Overrides java. Implements java. Add and notify any waiters that there are new elements.
| |
| addElement | back to summary |
|---|---|
| public synchronized void addElement(E object) Overrides java. Add and notify any waiters that there are new elements.
| |
| clear | back to summary |
|---|---|
| public synchronized void clear() Overrides java. Implements java. First wait until complete.
| |
| clone | back to summary |
|---|---|
| public synchronized Object clone() Overrides java. First wait until complete.
| |
| contains | back to summary |
|---|---|
| public synchronized boolean contains(Object element) Overrides java. Implements java. If it does not contain the object must wait until it is complete.
| |
| containsAll | back to summary |
|---|---|
| public synchronized boolean containsAll(Collection<?> collection) Overrides java. Implements java. If it does not contain the object must wait until it is complete.
| |
| copyInto | back to summary |
|---|---|
| public synchronized void copyInto(Object[] array) Overrides java. First wait until complete.
| |
| elementAt | back to summary |
|---|---|
| public synchronized E elementAt(int index) Overrides java. If the index is beyond the size wait until complete.
| |
| elements | back to summary |
|---|---|
| public Enumeration Overrides java. Allow concurrent streaming of the elements.
| |
| equals | back to summary |
|---|---|
| public synchronized boolean equals(Object object) Overrides java. Implements java. First wait until complete.
| |
| firstElement | back to summary |
|---|---|
| public synchronized E firstElement() Overrides java. Wait until has an element or is complete.
| |
| get | back to summary |
|---|---|
| public synchronized E get(int index) Overrides java. Implements java. Wait until has the element or is complete.
| |
| getException | back to summary |
|---|---|
| public RuntimeException getException() Return any exception that was throw from concurrent population thread. | |
| getSize | back to summary |
|---|---|
| protected int getSize() | |
| hasException | back to summary |
|---|---|
| public boolean hasException() Return if any exception that was throw from concurrent population thread. | |
| hashCode | back to summary |
|---|---|
| public synchronized int hashCode() Overrides java. Implements java. First wait until complete.
| |
| indexOf | back to summary |
|---|---|
| public int indexOf(Object element) Overrides java. Implements java. If does not contain the object wait until complete.
| |
| indexOf | back to summary |
|---|---|
| public synchronized int indexOf(Object element, int index) Overrides java. If does not contain the object wait until complete.
| |
| insertElementAt | back to summary |
|---|---|
| public synchronized void insertElementAt(E element, int index) Overrides java. Add the element a notify any waiters that there are new elements.
| |
| isComplete | back to summary |
|---|---|
| public synchronized boolean isComplete() Return if the list is complete. If an exception was thrown during the concurrent population throw the exception. | |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Overrides java. Implements java. If empty wait until an element has been added or is complete.
| |
| iterator | back to summary |
|---|---|
| public Iterator Overrides java. Implements java. Doc from java. Returns an iterator over the elements in this list in proper sequence. The returned iterator is fail-fast. | |
| lastElement | back to summary |
|---|---|
| public synchronized E lastElement() Overrides java. First wait until complete.
| |
| lastIndexOf | back to summary |
|---|---|
| public int lastIndexOf(Object element) Overrides java. Implements java. First wait until complete.
| |
| lastIndexOf | back to summary |
|---|---|
| public synchronized int lastIndexOf(Object element, int index) Overrides java. First wait until complete.
| |
| listIterator | back to summary |
|---|---|
| public ListIterator Overrides java. Implements java. Doc from java. Returns a list iterator over the elements in this list (in proper sequence). The returned list iterator is fail-fast.
| |
| listIterator | back to summary |
|---|---|
| public ListIterator Overrides java. Implements java. Iterate while waiting at end until complete.
| |
| remove | back to summary |
|---|---|
| public synchronized E remove(int index) Overrides java. Implements java. If index is missing wait until is there.
| |
| remove | back to summary |
|---|---|
| public boolean remove(Object element) Overrides java. Implements java. If object is missing wait until complete.
| |
| removeAll | back to summary |
|---|---|
| public synchronized boolean removeAll(Collection<?> collection) Overrides java. Implements java. First wait until complete.
| |
| removeAllElements | back to summary |
|---|---|
| public synchronized void removeAllElements() Overrides java. First wait until complete.
| |
| removeElement | back to summary |
|---|---|
| public synchronized boolean removeElement(Object element) Overrides java. If missing wait until complete.
| |
| removeElementAt | back to summary |
|---|---|
| public synchronized void removeElementAt(int index) Overrides java. If index is missing wait until reasched or complete.
| |
| retainAll | back to summary |
|---|---|
| public synchronized boolean retainAll(Collection<?> collection) Overrides java. Implements java. First wait until complete.
| |
| set | back to summary |
|---|---|
| public synchronized E set(int index, E element) Overrides java. Implements java. If index is missing wait until reached or complete.
| |
| setElementAt | back to summary |
|---|---|
| public synchronized void setElementAt(E element, int index) Overrides java. If index is missing wait until reached or complete.
| |
| setIsComplete | back to summary |
|---|---|
| public synchronized void setIsComplete(boolean isComplete) Set the list complete and notify any waiters. | |
| size | back to summary |
|---|---|
| public int size() Overrides java. Implements java. First wait until complete.
| |
| subList | back to summary |
|---|---|
| public List Overrides java. Implements java. If index is missing wait until reached or complete.
| |
| throwException | back to summary |
|---|---|
| public synchronized void throwException(RuntimeException exception) Record that the population thread hit an exception, that should be thrown to the processing thread on the next access. This also records the list and complete. | |
| toArray | back to summary |
|---|---|
| public synchronized Object[] toArray() Overrides java. Implements java. First wait until complete.
| |
| toArray | back to summary |
|---|---|
| public synchronized <T> T[] toArray(T[] array) Overrides java. Implements java. First wait until complete.
| |
| toString | back to summary |
|---|---|
| public synchronized String toString() Overrides java. First wait until complete.
| |
| trimToSize | back to summary |
|---|---|
| public synchronized void trimToSize() Overrides java. First wait until complete.
| |
| waitUntilAdd | back to summary |
|---|---|
| public synchronized void waitUntilAdd() Wait until a new element has been added. | |
| waitUntilComplete | back to summary |
|---|---|
| public synchronized void waitUntilComplete() Wait until the list has been fully populated. | |