| java.lang.Object java.util.concurrent.CopyOnWriteArrayList
Inner Class :final static class SubListReadData | |
Inner Class :static class SubList implements List | |
Method Summary | |
public boolean | add(E e) | public void | add(int index, E e) | public boolean | addAll(Collection<? extends E> c) | public boolean | addAll(int index, Collection<? extends E> c) | public int | addAllAbsent(Collection<? extends E> c) | public boolean | addIfAbsent(E e) | final static void | checkIndexExlusive(int index, int size) Throws IndexOutOfBoundsException if index
is out of the list bounds. | final static void | checkIndexInclusive(int index, int size) Throws IndexOutOfBoundsException if index
is out of the list bounds. | public void | clear() | public Object | clone() | public boolean | contains(Object o) | public boolean | containsAll(Collection> c) | final static boolean | containsAll(Collection c, Object[] data, int start, int size) | public boolean | equals(Object o) | public E | get(int index) | final E[] | getData() | public int | hashCode() | public int | indexOf(E e, int index) | public int | indexOf(Object o) | final static int | indexOf(Object o, Object[] data, int start, int size) | public boolean | isEmpty() | public Iterator<E> | iterator() | public int | lastIndexOf(E e, int index) | public int | lastIndexOf(Object o) | final static int | lastIndexOf(Object o, Object[] data, int start, int size) | public ListIterator<E> | listIterator() | public ListIterator<E> | listIterator(int index) | public E | remove(int index) | public boolean | remove(Object o) | public boolean | removeAll(Collection> c) | final int | removeAll(Collection c, int start, int size) | E | removeRange(int start, int size) | public boolean | retainAll(Collection> c) | int | retainAll(Collection c, int start, int size) | public E | set(int index, E e) | public int | size() | public List<E> | subList(int fromIndex, int toIndex) | public Object[] | toArray() | public T[] | toArray(T[] a) | static Object[] | toArray(Object[] data, int start, int size) | static Object[] | toArray(Object[] to, Object[] data, int start, int size) | public String | toString() |
CopyOnWriteArrayList | public CopyOnWriteArrayList()(Code) | | |
CopyOnWriteArrayList | public CopyOnWriteArrayList(Collection<? extends E> c)(Code) | | |
CopyOnWriteArrayList | public CopyOnWriteArrayList(E[] array)(Code) | | |
add | public boolean add(E e)(Code) | | |
add | public void add(int index, E e)(Code) | | |
addIfAbsent | public boolean addIfAbsent(E e)(Code) | | |
checkIndexExlusive | final static void checkIndexExlusive(int index, int size)(Code) | | Throws IndexOutOfBoundsException if index
is out of the list bounds. Excluding the last element.
Parameters: index - element index to check. |
checkIndexInclusive | final static void checkIndexInclusive(int index, int size)(Code) | | Throws IndexOutOfBoundsException if index
is out of the list bounds.
Parameters: index - element index to check. |
clear | public void clear()(Code) | | |
containsAll | final static boolean containsAll(Collection c, Object[] data, int start, int size)(Code) | | Checks if the specified range of the
array contains all of the elements in the collection
Parameters: c - collection with elements Parameters: data - array where to search the elements Parameters: start - start index Parameters: size - size of the range |
get | public E get(int index)(Code) | | |
getData | final E[] getData()(Code) | | gets the internal data array
the data array |
hashCode | public int hashCode()(Code) | | |
indexOf | public int indexOf(E e, int index)(Code) | | |
indexOf | final static int indexOf(Object o, Object[] data, int start, int size)(Code) | | Returns the index in the specified range of the data array
of the first occurrence of the specified element
Parameters: o - element to search Parameters: data - array where to search Parameters: start - start index Parameters: size - end index |
isEmpty | public boolean isEmpty()(Code) | | |
lastIndexOf | public int lastIndexOf(E e, int index)(Code) | | |
lastIndexOf | final static int lastIndexOf(Object o, Object[] data, int start, int size)(Code) | | Returns the index in the specified range of the data array
of the last occurrence of the specified element
Parameters: o - element to search Parameters: data - array where to search Parameters: start - start index Parameters: size - size of the range |
remove | public E remove(int index)(Code) | | |
removeAll | final int removeAll(Collection c, int start, int size)(Code) | | Removes from the specified range of this list
all the elements that are contained in the specified collection
!should be called under lock
Returns the number of removed elements |
removeRange | E removeRange(int start, int size)(Code) | | Removes specified range from this list
|
retainAll | int retainAll(Collection c, int start, int size)(Code) | | Retains only the elements in the specified range of this list
that are contained in the specified collection
Returns the number of removed elements |
set | public E set(int index, E e)(Code) | | |
subList | public List<E> subList(int fromIndex, int toIndex)(Code) | | |
toArray | public T[] toArray(T[] a)(Code) | | |
toArray | static Object[] toArray(Object[] data, int start, int size)(Code) | | Returns an array containing all of the elements
in the specified range of the array in proper sequence
|
toArray | static Object[] toArray(Object[] to, Object[] data, int start, int size)(Code) | | Returns an array containing all of the elements
in the specified range of the array in proper sequence,
stores the result in the array, specified by first parameter
(as for public instance method toArray(Object[] to)
|
|
|