ELEMENTTYPE - Element type@NotThreadSafe public class WrappedList<ELEMENTTYPE> extends Object implements ICommonsList<ELEMENTTYPE>
List. It may be used to wrap any kind of
List and overwrite single methods, e.g. for logging.| Constructor and Description |
|---|
WrappedList(List<ELEMENTTYPE> aList) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(ELEMENTTYPE aElement) |
void |
add(int nIndex,
ELEMENTTYPE aElement) |
boolean |
addAll(Collection<? extends ELEMENTTYPE> aElements) |
boolean |
addAll(int nIndex,
Collection<? extends ELEMENTTYPE> aElements) |
void |
clear() |
boolean |
contains(Object aElement) |
boolean |
containsAll(Collection<?> aElements) |
boolean |
equals(Object o) |
ELEMENTTYPE |
get(int nIndex) |
WrappedList<ELEMENTTYPE> |
getClone() |
protected List<ELEMENTTYPE> |
getSource() |
int |
hashCode() |
int |
indexOf(Object aElement) |
boolean |
isEmpty() |
Iterator<ELEMENTTYPE> |
iterator() |
int |
lastIndexOf(Object aElement) |
ListIterator<ELEMENTTYPE> |
listIterator() |
ListIterator<ELEMENTTYPE> |
listIterator(int nIndex) |
ELEMENTTYPE |
remove(int nIndex) |
boolean |
remove(Object aElement) |
boolean |
removeAll(Collection<?> aElements) |
boolean |
retainAll(Collection<?> aElements) |
ELEMENTTYPE |
set(int nIndex,
ELEMENTTYPE aElement) |
int |
size() |
List<ELEMENTTYPE> |
subList(int nFromIndex,
int nToIndex) |
Object[] |
toArray() |
<ARRAYELEMENTTYPE> |
toArray(ARRAYELEMENTTYPE[] a) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcreateInstance, getAll, getAllInstanceOf, getAllMapped, getAllMapped, getAsUnmodifiable, getAtIndex, getFirst, getLast, removeAndReturnElementAtIndex, removeAtIndex, removeFirst, removeLast, setFirst, setLastreplaceAll, sort, spliteratoraddAll, addAll, addAll, addAll, addAllMapped, addAllMapped, addIf, addIfNotNull, containsAny, containsNone, containsOnly, findAll, findAll, findAllInstanceOf, findAllMapped, findAllMapped, findAllMapped, findAllMapped, findFirst, findFirst, findFirstMapped, findFirstMapped, getAtIndex, getAtIndex, getAtIndex, getAtIndexMapped, getAtIndexMapped, getCopyAsList, getCount, getSorted, isNotEmpty, iterator2, removeAll, set, setAll, setAllparallelStream, removeIf, streampublic WrappedList(@Nonnull List<ELEMENTTYPE> aList)
@Nonnull @ReturnsMutableCopy public WrappedList<ELEMENTTYPE> getClone()
getClone in interface ICloneable<ICommonsList<ELEMENTTYPE>>@Nonnull @ReturnsMutableObject(value="design") protected List<ELEMENTTYPE> getSource()
@Nullable public ELEMENTTYPE get(@Nonnegative int nIndex)
get in interface List<ELEMENTTYPE>public boolean add(@Nullable ELEMENTTYPE aElement)
add in interface Collection<ELEMENTTYPE>add in interface List<ELEMENTTYPE>public void add(@Nonnegative int nIndex, @Nullable ELEMENTTYPE aElement)
add in interface List<ELEMENTTYPE>public boolean addAll(@Nonnull Collection<? extends ELEMENTTYPE> aElements)
addAll in interface Collection<ELEMENTTYPE>addAll in interface List<ELEMENTTYPE>public boolean addAll(@Nonnegative int nIndex, @Nonnull Collection<? extends ELEMENTTYPE> aElements)
addAll in interface List<ELEMENTTYPE>public void clear()
clear in interface Collection<ELEMENTTYPE>clear in interface List<ELEMENTTYPE>public boolean contains(Object aElement)
contains in interface Collection<ELEMENTTYPE>contains in interface List<ELEMENTTYPE>public boolean containsAll(Collection<?> aElements)
containsAll in interface Collection<ELEMENTTYPE>containsAll in interface List<ELEMENTTYPE>public int indexOf(Object aElement)
indexOf in interface List<ELEMENTTYPE>public boolean isEmpty()
isEmpty in interface Collection<ELEMENTTYPE>isEmpty in interface List<ELEMENTTYPE>public Iterator<ELEMENTTYPE> iterator()
iterator in interface Iterable<ELEMENTTYPE>iterator in interface Collection<ELEMENTTYPE>iterator in interface List<ELEMENTTYPE>public int lastIndexOf(Object aElement)
lastIndexOf in interface List<ELEMENTTYPE>public ListIterator<ELEMENTTYPE> listIterator()
listIterator in interface List<ELEMENTTYPE>public ListIterator<ELEMENTTYPE> listIterator(int nIndex)
listIterator in interface List<ELEMENTTYPE>public boolean remove(Object aElement)
remove in interface Collection<ELEMENTTYPE>remove in interface List<ELEMENTTYPE>public ELEMENTTYPE remove(int nIndex)
remove in interface List<ELEMENTTYPE>public boolean removeAll(Collection<?> aElements)
removeAll in interface Collection<ELEMENTTYPE>removeAll in interface List<ELEMENTTYPE>public boolean retainAll(Collection<?> aElements)
retainAll in interface Collection<ELEMENTTYPE>retainAll in interface List<ELEMENTTYPE>public ELEMENTTYPE set(@Nonnegative int nIndex, ELEMENTTYPE aElement)
set in interface List<ELEMENTTYPE>@Nonnegative public int size()
size in interface Collection<ELEMENTTYPE>size in interface List<ELEMENTTYPE>@ReturnsMutableObject(value="as defined by List") public List<ELEMENTTYPE> subList(int nFromIndex, int nToIndex)
subList in interface List<ELEMENTTYPE>public Object[] toArray()
toArray in interface Collection<ELEMENTTYPE>toArray in interface List<ELEMENTTYPE>public <ARRAYELEMENTTYPE> ARRAYELEMENTTYPE[] toArray(ARRAYELEMENTTYPE[] a)
toArray in interface Collection<ELEMENTTYPE>toArray in interface List<ELEMENTTYPE>public boolean equals(Object o)
equals in interface Collection<ELEMENTTYPE>equals in interface List<ELEMENTTYPE>equals in class Objectpublic int hashCode()
hashCode in interface Collection<ELEMENTTYPE>hashCode in interface List<ELEMENTTYPE>hashCode in class ObjectCopyright © 2014–2016 Philip Helger. All rights reserved.