java.io.Externalizable
, java.io.Serializable
, java.lang.Cloneable
, java.lang.Iterable<java.lang.Byte>
, java.util.Collection<java.lang.Byte>
, java.util.List<java.lang.Byte>
public class TByteListDecorator
extends java.util.AbstractList<java.lang.Byte>
implements java.util.List<java.lang.Byte>, java.io.Externalizable, java.lang.Cloneable
Modifier and Type | Field | Description |
---|---|---|
protected TByteList |
list |
the wrapped primitive list
|
Constructor | Description |
---|---|
TByteListDecorator() |
FOR EXTERNALIZATION ONLY!!
|
TByteListDecorator(TByteList list) |
Creates a wrapper that decorates the specified primitive map.
|
Modifier and Type | Method | Description |
---|---|---|
void |
add(int index,
java.lang.Byte value) |
|
java.lang.Byte |
get(int index) |
|
TByteList |
getList() |
Returns a reference to the list wrapped by this decorator.
|
void |
readExternal(java.io.ObjectInput in) |
|
java.lang.Byte |
remove(int index) |
|
java.lang.Byte |
set(int index,
java.lang.Byte 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 TByteList list
public TByteListDecorator()
public TByteListDecorator(TByteList list)
list
- the TByteList to wrap.public TByteList getList()
public int size()
size
in interface java.util.Collection<java.lang.Byte>
size
in interface java.util.List<java.lang.Byte>
size
in class java.util.AbstractCollection<java.lang.Byte>
public java.lang.Byte get(int index)
get
in interface java.util.List<java.lang.Byte>
get
in class java.util.AbstractList<java.lang.Byte>
public java.lang.Byte set(int index, java.lang.Byte value)
set
in interface java.util.List<java.lang.Byte>
set
in class java.util.AbstractList<java.lang.Byte>
public void add(int index, java.lang.Byte value)
add
in interface java.util.List<java.lang.Byte>
add
in class java.util.AbstractList<java.lang.Byte>
public java.lang.Byte remove(int index)
remove
in interface java.util.List<java.lang.Byte>
remove
in class java.util.AbstractList<java.lang.Byte>
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