E - @StoreNotUseStandardSerialization @StorableClass public class ArrayListSupport<E> extends Object implements IListSupport<E>, Iterable<E>, Cloneable, Serializable
| Modifier | Constructor and Description | 
|---|---|
  | 
ArrayListSupport(IEqualsHashComparator comparator)  | 
protected  | 
ArrayListSupport(IInstanceFactory instanceFactory,
                IEqualsHashComparator comparator)  | 
protected  | 
ArrayListSupport(IInstanceFactory instanceFactory,
                int initialCapacity,
                IEqualsHashComparator comparator)  | 
protected  | 
ArrayListSupport(int initialCapacity,
                IEqualsHashComparator comparator)  | 
| Modifier and Type | Method and Description | 
|---|---|
E | 
add(int addIndex,
   E element)
add element at index position 
 | 
E | 
addAtBegin(E element)  | 
E | 
addAtEnd(E element)
add element at end of the list 
 | 
E | 
addReplace(E element)
add element at end of the list if equals element not already in the list,
 else replace the equals element 
 | 
ArrayListSupportIterator<E> | 
arrayListSupportIterator()  | 
void | 
clear()
clear the list 
 | 
ArrayListSupport<E> | 
clone()  | 
boolean | 
contains(Object object)
to know if list contains an element equals to an object 
equality check is done using Object.equals element implementation | 
ListIterator<E> | 
descendingIterator()
Returns an iterator over the elements in this list in reverse sequential
 order. 
 | 
void | 
ensureCapacity(int minCapacity)  | 
boolean | 
equals(Object obj)  | 
E | 
get(int index)  | 
E | 
get(Object object)
search for an element and return founded if one 
 | 
E[] | 
getArray()  | 
IEqualsHashComparator | 
getComparator()  | 
E | 
getFirst()
get the first element of the list 
null returned if empty list or if first element is null  | 
E | 
getLast()
get the last element of the list 
null returned if empty list or if last element is null  | 
int | 
getModificationCount()  | 
int | 
getSize()  | 
int | 
hashCode()  | 
int | 
indexOf(Object object)  | 
boolean | 
isEmpty()  | 
ListIterator<E> | 
iterator()
next will return the first element if list not empty 
no previous element  | 
ListIterator<E> | 
iterator(int index)
next will return element at index position 
 | 
int | 
lastIndexOf(Object object)  | 
static ArrayListSupport | 
newInstance(IInstanceFactory instanceFactory,
           IEqualsHashComparator comparator)  | 
static ArrayListSupport | 
newInstance(IInstanceFactory instanceFactory,
           int initialCapacity,
           IEqualsHashComparator comparator)  | 
E | 
remove(int index)
remove element at index 
 | 
E | 
remove(Object object)
remove element 
 | 
E | 
removeFirst()
remove first element of the list 
 | 
E | 
removeLast()
remove last element of the list 
 | 
void | 
removeListener()  | 
E | 
set(E element,
   int position)
add element at position 
 | 
void | 
setArray(E[] array)  | 
void | 
setListener(ISupportListener<E> listener)  | 
Object[] | 
toArray()  | 
<T> T[] | 
toArray(T[] elements)  | 
void | 
trimToSize()  | 
public ArrayListSupport(IEqualsHashComparator comparator)
protected ArrayListSupport(IInstanceFactory instanceFactory, IEqualsHashComparator comparator)
protected ArrayListSupport(int initialCapacity,
                IEqualsHashComparator comparator)
protected ArrayListSupport(IInstanceFactory instanceFactory, int initialCapacity, IEqualsHashComparator comparator)
public static ArrayListSupport newInstance(IInstanceFactory instanceFactory, IEqualsHashComparator comparator)
public static ArrayListSupport newInstance(IInstanceFactory instanceFactory, int initialCapacity, IEqualsHashComparator comparator)
public int getModificationCount()
public void setListener(ISupportListener<E> listener)
setListener in interface ISupportListenable<E>public void removeListener()
removeListener in interface ISupportListenable<E>public E set(E element, int position)
IListSupportset in interface IListSupport<E>public E addAtEnd(E element)
IListSupportaddAtEnd in interface IListSupport<E>element - the element to addpublic E addAtBegin(E element)
addAtBegin in interface IListSupport<E>element - element to add at begin of listpublic E add(int addIndex, E element)
IListSupportadd in interface IListSupport<E>addIndex - position for addelement - element to addpublic E addReplace(E element)
IListSupportaddReplace in interface IListSupport<E>public E remove(Object object)
IListSupportremove in interface IListSupport<E>object - the element to removepublic E remove(int index)
IListSupportremove in interface IListSupport<E>index - position of element to removepublic E removeFirst()
IListSupportremoveFirst in interface IListSupport<E>public E removeLast()
IListSupportremoveLast in interface IListSupport<E>public E getFirst()
IListSupportgetFirst in interface IListSupport<E>public E getLast()
IListSupportgetLast in interface IListSupport<E>public E get(int index)
get in interface IListSupport<E>public E get(Object object)
IListSupportget in interface IListSupport<E>object - the element to search forpublic boolean contains(Object object)
IListSupportObject.equals element implementationcontains in interface IListSupport<E>object - the element to search forpublic void clear()
IListSupportclear in interface IListSupport<E>public int getSize()
getSize in interface IListSupport<E>public boolean isEmpty()
isEmpty in interface IListSupport<E>public void trimToSize()
public void ensureCapacity(int minCapacity)
public int indexOf(Object object)
indexOf in interface IListSupport<E>public int lastIndexOf(Object object)
lastIndexOf in interface IListSupport<E>public ListIterator<E> iterator()
IListSupportpublic ListIterator<E> iterator(int index)
IListSupportiterator in interface IListSupport<E>index - start of the iterationpublic ListIterator<E> descendingIterator()
IListSupportdescendingIterator in interface IListSupport<E>public ArrayListSupportIterator<E> arrayListSupportIterator()
public Object[] toArray()
public <T> T[] toArray(T[] elements)
public ArrayListSupport<E> clone()
public void setArray(E[] array)
public E[] getArray()
public IEqualsHashComparator getComparator()
Copyright © 2007-2012 Luc Peuvrier. All Rights Reserved.