com.liferay.portal.kernel.util
Class TranslatedList<E,F>
java.lang.Object
com.liferay.portal.kernel.util.ListWrapper<E>
com.liferay.portal.kernel.util.TranslatedList<E,F>
- All Implemented Interfaces:
- Iterable<E>, Collection<E>, List<E>
public abstract class TranslatedList<E,F>
- extends ListWrapper<E>
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 |
TranslatedList
public TranslatedList(List<E> newList,
List<F> oldList)
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)