public class ShadowList<T> extends Object implements List<T>
Constructor and Description |
---|
ShadowList(List<T> original) |
Modifier and Type | Method and Description |
---|---|
void |
add(int i,
T e) |
boolean |
add(T e) |
boolean |
addAll(Collection<? extends T> clctn) |
boolean |
addAll(int i,
Collection<? extends T> clctn) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> clctn) |
T |
get(int i) |
List<T> |
getOriginal() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int i) |
T |
remove(int i) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> clctn) |
boolean |
retainAll(Collection<?> clctn) |
T |
set(int i,
T e) |
int |
size() |
List<T> |
subList(int i,
int i1) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] ts) |
public int size()
public boolean isEmpty()
public boolean contains(Object o)
public Object[] toArray()
public <T> T[] toArray(T[] ts)
public boolean add(T e)
public boolean remove(Object o)
public boolean containsAll(Collection<?> clctn)
containsAll
in interface Collection<T>
containsAll
in interface List<T>
public boolean addAll(Collection<? extends T> clctn)
public boolean addAll(int i, Collection<? extends T> clctn)
public boolean removeAll(Collection<?> clctn)
public boolean retainAll(Collection<?> clctn)
public void clear()
public int lastIndexOf(Object o)
lastIndexOf
in interface List<T>
public ListIterator<T> listIterator()
listIterator
in interface List<T>
public ListIterator<T> listIterator(int i)
listIterator
in interface List<T>
Copyright © 2006-2015 The Apache Software Foundation. All Rights Reserved.