SizedIterable<K>
, java.lang.Iterable<K>
, java.util.Collection<K>
, java.util.List<K>
public class ChameleonList<K> extends java.lang.Object implements java.util.List<K>, SizedIterable<K>
Modifier and Type | Class | Description |
---|---|---|
static class |
ChameleonList.Signaler<K> |
Constructor | Description |
---|---|
ChameleonList(java.util.List<K> l,
ChameleonList.Signaler<K> signaler) |
Modifier and Type | Method | Description |
---|---|---|
void |
add(int arg0,
K arg1) |
|
boolean |
add(K arg0) |
|
boolean |
addAll(int arg0,
java.util.Collection<? extends K> arg1) |
|
boolean |
addAll(java.util.Collection<? extends K> arg0) |
|
void |
changeMeInto(ChameleonList<K> fromList) |
|
void |
clear() |
|
boolean |
contains(java.lang.Object arg0) |
|
boolean |
containsAll(java.util.Collection<?> arg0) |
|
K |
get(int arg0) |
|
ChameleonList.Signaler<K> |
getSignaler() |
|
int |
indexOf(java.lang.Object arg0) |
|
boolean |
isEmpty() |
|
java.util.Iterator<K> |
iterator() |
|
int |
lastIndexOf(java.lang.Object arg0) |
|
java.util.ListIterator<K> |
listIterator() |
|
java.util.ListIterator<K> |
listIterator(int arg0) |
|
K |
remove(int arg0) |
|
boolean |
remove(java.lang.Object arg0) |
|
boolean |
removeAll(java.util.Collection<?> arg0) |
|
boolean |
retainAll(java.util.Collection<?> arg0) |
|
K |
set(int arg0,
K arg1) |
|
int |
size() |
Returns the size of the iterable
|
java.util.List<K> |
subList(int arg0,
int arg1) |
|
java.lang.Object[] |
toArray() |
|
<T> T[] |
toArray(T[] arg0) |
public ChameleonList(java.util.List<K> l, ChameleonList.Signaler<K> signaler)
public void changeMeInto(ChameleonList<K> fromList)
public ChameleonList.Signaler<K> getSignaler()
public boolean add(K arg0)
public boolean addAll(java.util.Collection<? extends K> arg0)
public boolean addAll(int arg0, java.util.Collection<? extends K> arg1)
addAll
in interface java.util.List<K>
public void clear()
public boolean contains(java.lang.Object arg0)
public boolean containsAll(java.util.Collection<?> arg0)
public int indexOf(java.lang.Object arg0)
indexOf
in interface java.util.List<K>
public boolean isEmpty()
public java.util.Iterator<K> iterator()
public int lastIndexOf(java.lang.Object arg0)
lastIndexOf
in interface java.util.List<K>
public java.util.ListIterator<K> listIterator()
listIterator
in interface java.util.List<K>
public java.util.ListIterator<K> listIterator(int arg0)
listIterator
in interface java.util.List<K>
public boolean remove(java.lang.Object arg0)
public boolean removeAll(java.util.Collection<?> arg0)
public boolean retainAll(java.util.Collection<?> arg0)
public int size()
SizedIterable
size
in interface java.util.Collection<K>
size
in interface java.util.List<K>
size
in interface SizedIterable<K>
public java.util.List<K> subList(int arg0, int arg1)
subList
in interface java.util.List<K>
public java.lang.Object[] toArray()