Liferay 6.1.2-ce-ga3

com.liferay.portal.kernel.util
Class TranslatedList<E,F>

java.lang.Object
  extended by com.liferay.portal.kernel.util.ListWrapper<E>
      extended by com.liferay.portal.kernel.util.TranslatedList<E,F>
All Implemented Interfaces:
Iterable<E>, Collection<E>, List<E>
Direct Known Subclasses:
NodeList

public abstract class TranslatedList<E,F>
extends ListWrapper<E>


Constructor Summary
TranslatedList(List<E> newList, List<F> oldList)
           
 
Method Summary
 boolean add(E o)
           
 void add(int index, E element)
           
 boolean addAll(Collection<? extends E> c)
           
 boolean addAll(int index, Collection<? extends E> c)
           
protected abstract  TranslatedList<E,F> newInstance(List<E> newList, List<F> oldList)
           
 E remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection<?> c)
           
 boolean retainAll(Collection<?> c)
           
 E set(int index, E element)
           
 List<E> subList(int fromIndex, int toIndex)
           
protected abstract  F toOldObject(E o)
           
 
Methods inherited from class com.liferay.portal.kernel.util.ListWrapper
clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, size, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.List
equals, hashCode
 

Constructor Detail

TranslatedList

public TranslatedList(List<E> newList,
                      List<F> oldList)
Method Detail

add

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

add

public void add(int index,
                E element)
Specified by:
add in interface List<E>
Overrides:
add in class ListWrapper<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 ListWrapper<E>

addAll

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

remove

public E remove(int index)
Specified by:
remove in interface List<E>
Overrides:
remove in class ListWrapper<E>

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection<E>
Specified by:
remove in interface List<E>
Overrides:
remove in class ListWrapper<E>

removeAll

public boolean removeAll(Collection<?> c)
Specified by:
removeAll in interface Collection<E>
Specified by:
removeAll in interface List<E>
Overrides:
removeAll in class ListWrapper<E>

retainAll

public boolean retainAll(Collection<?> c)
Specified by:
retainAll in interface Collection<E>
Specified by:
retainAll in interface List<E>
Overrides:
retainAll in class ListWrapper<E>

set

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

subList

public List<E> subList(int fromIndex,
                       int toIndex)
Specified by:
subList in interface List<E>
Overrides:
subList in class ListWrapper<E>

newInstance

protected abstract TranslatedList<E,F> newInstance(List<E> newList,
                                                   List<F> oldList)

toOldObject

protected abstract F toOldObject(E o)

Liferay 6.1.2-ce-ga3