Liferay 6.2-ce-ga5

com.liferay.portal.kernel.util
Class SortedArrayList<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<E>
              extended by com.liferay.portal.kernel.util.SortedArrayList<E>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess

public class SortedArrayList<E>
extends ArrayList<E>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SortedArrayList()
           
SortedArrayList(Collection<? extends E> c)
           
SortedArrayList(Comparator<E> comparator)
           
 
Method Summary
 boolean add(E e)
           
 void add(int index, E e)
           
 boolean addAll(Collection<? extends E> c)
           
 boolean addAll(int index, Collection<? extends E> c)
           
protected  int compare(E e1, E e2)
           
 E set(int index, E e)
           
 
Methods inherited from class java.util.ArrayList
clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, size, subList, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode
 
Methods inherited from class java.util.AbstractCollection
containsAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode
 

Constructor Detail

SortedArrayList

public SortedArrayList()

SortedArrayList

public SortedArrayList(Collection<? extends E> c)

SortedArrayList

public SortedArrayList(Comparator<E> comparator)
Method Detail

add

public boolean add(E e)
Specified by:
add in interface Collection<E>
Specified by:
add in interface List<E>
Overrides:
add in class ArrayList<E>

add

public void add(int index,
                E e)
Specified by:
add in interface List<E>
Overrides:
add in class ArrayList<E>

addAll

public boolean addAll(Collection<? extends E> c)
Specified by:
addAll in interface Collection<E>
Specified by:
addAll in interface List<E>
Overrides:
addAll in class ArrayList<E>

addAll

public boolean addAll(int index,
                      Collection<? extends E> c)
Specified by:
addAll in interface List<E>
Overrides:
addAll in class ArrayList<E>

set

public E set(int index,
             E e)
Specified by:
set in interface List<E>
Overrides:
set in class ArrayList<E>

compare

protected int compare(E e1,
                      E e2)

Liferay 6.2-ce-ga5