java.io.Externalizable
, java.io.Serializable
, java.lang.Cloneable
, java.lang.Iterable<java.lang.Integer>
, java.util.Collection<java.lang.Integer>
, java.util.List<java.lang.Integer>
public class TIntListDecorator
extends java.util.AbstractList<java.lang.Integer>
implements java.util.List<java.lang.Integer>, java.io.Externalizable, java.lang.Cloneable
Modifier and Type | Field | Description |
---|---|---|
protected TIntList |
list |
the wrapped primitive list
|
Constructor | Description |
---|---|
TIntListDecorator() |
FOR EXTERNALIZATION ONLY!!
|
TIntListDecorator(TIntList list) |
Creates a wrapper that decorates the specified primitive map.
|
Modifier and Type | Method | Description |
---|---|---|
void |
add(int index,
java.lang.Integer value) |
|
java.lang.Integer |
get(int index) |
|
TIntList |
getList() |
Returns a reference to the list wrapped by this decorator.
|
void |
readExternal(java.io.ObjectInput in) |
|
java.lang.Integer |
remove(int index) |
|
java.lang.Integer |
set(int index,
java.lang.Integer value) |
|
int |
size() |
|
void |
writeExternal(java.io.ObjectOutput out) |
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, of, of, of, of, of, of, of, of, of, of, of, of, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray, toArray
protected TIntList list
public TIntListDecorator()
public TIntListDecorator(TIntList list)
list
- the TIntList to wrap.public TIntList getList()
public int size()
size
in interface java.util.Collection<java.lang.Integer>
size
in interface java.util.List<java.lang.Integer>
size
in class java.util.AbstractCollection<java.lang.Integer>
public java.lang.Integer get(int index)
get
in interface java.util.List<java.lang.Integer>
get
in class java.util.AbstractList<java.lang.Integer>
public java.lang.Integer set(int index, java.lang.Integer value)
set
in interface java.util.List<java.lang.Integer>
set
in class java.util.AbstractList<java.lang.Integer>
public void add(int index, java.lang.Integer value)
add
in interface java.util.List<java.lang.Integer>
add
in class java.util.AbstractList<java.lang.Integer>
public java.lang.Integer remove(int index)
remove
in interface java.util.List<java.lang.Integer>
remove
in class java.util.AbstractList<java.lang.Integer>
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException