org.chromattic.common.collection.wrapped
Class WrappedArrayList<E,A>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
org.chromattic.common.collection.wrapped.WrappedArrayList<E,A>
- All Implemented Interfaces:
- java.lang.Iterable<E>, java.util.Collection<E>, java.util.List<E>
public abstract class WrappedArrayList<E,A>
- extends java.util.AbstractList<E>
- Version:
- $Revision$
- Author:
- Julien Viet
| Fields inherited from class java.util.AbstractList |
modCount |
|
Method Summary |
static
|
create(java.lang.Class<E> elementType,
java.lang.Class<?> componentType,
int size)
|
protected abstract E |
get(A array,
int index)
|
E |
get(int index)
|
A |
getArray()
|
protected abstract void |
set(A array,
int index,
E element)
|
E |
set(int index,
E element)
|
int |
size()
|
protected abstract int |
size(A array)
|
static
|
wrap(java.lang.Class<E> elementType,
java.lang.Object array)
|
| Methods inherited from class java.util.AbstractList |
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, subList |
| Methods inherited from class java.util.AbstractCollection |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
WrappedArrayList
protected WrappedArrayList(A array)
throws java.lang.NullPointerException
- Throws:
java.lang.NullPointerException
create
public static <E,A> WrappedArrayList<E,A> create(java.lang.Class<E> elementType,
java.lang.Class<?> componentType,
int size)
wrap
public static <E,A> WrappedArrayList<E,A> wrap(java.lang.Class<E> elementType,
java.lang.Object array)
get
protected abstract E get(A array,
int index)
set
protected abstract void set(A array,
int index,
E element)
size
protected abstract int size(A array)
getArray
public final A getArray()
get
public final E get(int index)
- Specified by:
get in interface java.util.List<E>- Specified by:
get in class java.util.AbstractList<E>
set
public final E set(int index,
E element)
- Specified by:
set in interface java.util.List<E>- Overrides:
set in class java.util.AbstractList<E>
size
public final int size()
- Specified by:
size in interface java.util.Collection<E>- Specified by:
size in interface java.util.List<E>- Specified by:
size in class java.util.AbstractCollection<E>
Copyright © 2012 eXo Platform SAS. All Rights Reserved.