public class TDoubleListDecorator
extends java.util.AbstractList<java.lang.Double>
implements java.util.List<java.lang.Double>, java.io.Externalizable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected TDoubleList |
list
the wrapped primitive list
|
Constructor and Description |
---|
TDoubleListDecorator()
FOR EXTERNALIZATION ONLY!!
|
TDoubleListDecorator(TDoubleList list)
Creates a wrapper that decorates the specified primitive map.
|
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
java.lang.Double value) |
java.lang.Double |
get(int index) |
TDoubleList |
getList()
Returns a reference to the list wrapped by this decorator.
|
void |
readExternal(java.io.ObjectInput in) |
java.lang.Double |
remove(int index) |
java.lang.Double |
set(int index,
java.lang.Double value) |
int |
size() |
void |
writeExternal(java.io.ObjectOutput out) |
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
protected TDoubleList list
public TDoubleListDecorator()
public TDoubleListDecorator(TDoubleList list)
list
- the TDoubleList to wrap.public TDoubleList getList()
public int size()
size
in interface java.util.Collection<java.lang.Double>
size
in interface java.util.List<java.lang.Double>
size
in class java.util.AbstractCollection<java.lang.Double>
public java.lang.Double get(int index)
get
in interface java.util.List<java.lang.Double>
get
in class java.util.AbstractList<java.lang.Double>
public java.lang.Double set(int index, java.lang.Double value)
set
in interface java.util.List<java.lang.Double>
set
in class java.util.AbstractList<java.lang.Double>
public void add(int index, java.lang.Double value)
add
in interface java.util.List<java.lang.Double>
add
in class java.util.AbstractList<java.lang.Double>
public java.lang.Double remove(int index)
remove
in interface java.util.List<java.lang.Double>
remove
in class java.util.AbstractList<java.lang.Double>
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