groovyx.gpars.extra166y
Class ParallelArray.AsList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<T>
groovyx.gpars.extra166y.ParallelArray.AsList
- All Implemented Interfaces:
- java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess
- Enclosing class:
- ParallelArray<T>
final class ParallelArray.AsList
- extends java.util.AbstractList<T>
- implements java.util.RandomAccess
Fields inherited from class java.util.AbstractList |
modCount |
Methods inherited from class java.util.AbstractList |
equals, hashCode, subList |
Methods inherited from class java.util.AbstractCollection |
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, removeAll, retainAll |
ParallelArray.AsList
ParallelArray.AsList()
get
public T get(int i)
- Specified by:
get
in interface java.util.List<T>
- Specified by:
get
in class java.util.AbstractList<T>
set
public T set(int i,
T x)
- Specified by:
set
in interface java.util.List<T>
- Overrides:
set
in class java.util.AbstractList<T>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Collection<T>
- Specified by:
isEmpty
in interface java.util.List<T>
- Overrides:
isEmpty
in class java.util.AbstractCollection<T>
size
public int size()
- Specified by:
size
in interface java.util.Collection<T>
- Specified by:
size
in interface java.util.List<T>
- Specified by:
size
in class java.util.AbstractCollection<T>
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator
in interface java.lang.Iterable<T>
- Specified by:
iterator
in interface java.util.Collection<T>
- Specified by:
iterator
in interface java.util.List<T>
- Overrides:
iterator
in class java.util.AbstractList<T>
listIterator
public java.util.ListIterator<T> listIterator()
- Specified by:
listIterator
in interface java.util.List<T>
- Overrides:
listIterator
in class java.util.AbstractList<T>
listIterator
public java.util.ListIterator<T> listIterator(int index)
- Specified by:
listIterator
in interface java.util.List<T>
- Overrides:
listIterator
in class java.util.AbstractList<T>
add
public boolean add(T e)
- Specified by:
add
in interface java.util.Collection<T>
- Specified by:
add
in interface java.util.List<T>
- Overrides:
add
in class java.util.AbstractList<T>
add
public void add(int index,
T e)
- Specified by:
add
in interface java.util.List<T>
- Overrides:
add
in class java.util.AbstractList<T>
addAll
public boolean addAll(java.util.Collection<? extends T> c)
- Specified by:
addAll
in interface java.util.Collection<T>
- Specified by:
addAll
in interface java.util.List<T>
- Overrides:
addAll
in class java.util.AbstractCollection<T>
addAll
public boolean addAll(int index,
java.util.Collection<? extends T> c)
- Specified by:
addAll
in interface java.util.List<T>
- Overrides:
addAll
in class java.util.AbstractList<T>
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection<T>
- Specified by:
clear
in interface java.util.List<T>
- Overrides:
clear
in class java.util.AbstractList<T>
remove
public boolean remove(java.lang.Object o)
- Specified by:
remove
in interface java.util.Collection<T>
- Specified by:
remove
in interface java.util.List<T>
- Overrides:
remove
in class java.util.AbstractCollection<T>
remove
public T remove(int index)
- Specified by:
remove
in interface java.util.List<T>
- Overrides:
remove
in class java.util.AbstractList<T>
removeRange
public void removeRange(int fromIndex,
int toIndex)
- Overrides:
removeRange
in class java.util.AbstractList<T>
contains
public boolean contains(java.lang.Object o)
- Specified by:
contains
in interface java.util.Collection<T>
- Specified by:
contains
in interface java.util.List<T>
- Overrides:
contains
in class java.util.AbstractCollection<T>
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOf
in interface java.util.List<T>
- Overrides:
indexOf
in class java.util.AbstractList<T>
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOf
in interface java.util.List<T>
- Overrides:
lastIndexOf
in class java.util.AbstractList<T>
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interface java.util.Collection<T>
- Specified by:
toArray
in interface java.util.List<T>
- Overrides:
toArray
in class java.util.AbstractCollection<T>
toArray
public <V> V[] toArray(V[] a)
- Specified by:
toArray
in interface java.util.Collection<T>
- Specified by:
toArray
in interface java.util.List<T>
- Overrides:
toArray
in class java.util.AbstractCollection<T>