E - @StorableClass @StoreNotUseStandardSerialization public class PCopiesList<E> extends PAbstractList<E> implements RandomAccess, Serializable
instanceFactory| Constructor and Description |
|---|
PCopiesList(IInstanceFactory instanceFactory,
int numberOfElement,
E element) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(int index,
Collection<? extends E> collection) |
void |
clear() |
boolean |
contains(Object object) |
E |
get(int index) |
int |
indexOf(Object object) |
int |
lastIndexOf(Object object) |
static PCopiesList |
newInstance(IInstanceFactory instanceFactory,
int numberOfElement,
Object element) |
int |
size() |
List<E> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
add, add, iterator, listIterator, listIterator, remove, setaddAll, containsAll, isEmpty, remove, removeAll, retainAll, toStringpublic PCopiesList(IInstanceFactory instanceFactory, int numberOfElement, E element)
numberOfElement - the number of elements in the returned list.element - the element to appear repeatedly in the returned list.public static PCopiesList newInstance(IInstanceFactory instanceFactory, int numberOfElement, Object element)
public int size()
public boolean contains(Object object)
contains in interface Collection<E>contains in interface List<E>contains in class PAbstractCollection<E>public int indexOf(Object object)
public int lastIndexOf(Object object)
lastIndexOf in interface List<E>lastIndexOf in class PAbstractList<E>public E get(int index)
public Object[] toArray()
toArray in interface Collection<E>toArray in interface List<E>toArray in class PAbstractCollection<E>public <T> T[] toArray(T[] array)
toArray in interface Collection<E>toArray in interface List<E>toArray in class PAbstractCollection<E>public boolean addAll(int index,
Collection<? extends E> collection)
public void clear()
clear in interface Collection<E>clear in interface List<E>clear in class PAbstractCollection<E>Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.