public class ListValue<T extends Value.Tvalue<?>> extends Object implements Value.Tvalue<List<Object>>
Value.CustomizeValue<T>, Value.Tvalue<T>| Constructor and Description |
|---|
ListValue() |
ListValue(ValueType elemType) |
ListValue(ValueType elemType,
List<T> values) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T value) |
void |
addAll(Collection<T> values) |
void |
assign(Value other)
Assign a new value to this object
|
void |
checkAndSetType(T value) |
int |
compareTo(Value obj) |
boolean |
contains(T obj) |
ListValue<T> |
copy() |
ValueType |
elemType() |
boolean |
equals(Object obj) |
T |
get(int index) |
T |
getLast() |
int |
hashCode() |
void |
read(RandomAccessInput in) |
protected void |
read(RandomAccessInput in,
boolean readElemType) |
int |
size() |
String |
toString() |
List<Object> |
value() |
List<T> |
values() |
ValueType |
valueType() |
void |
write(RandomAccessOutput out) |
protected void |
write(RandomAccessOutput out,
boolean writeElemType) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckAssign, isNumber, stringpublic ListValue()
public ListValue(ValueType elemType)
public void checkAndSetType(T value)
public void add(T value)
public void addAll(Collection<T> values)
public T get(int index)
public T getLast()
public boolean contains(T obj)
public int size()
public ValueType valueType()
public ValueType elemType()
public void assign(Value other)
Valuepublic void read(RandomAccessInput in) throws IOException
read in interface ReadableIOExceptionprotected void read(RandomAccessInput in, boolean readElemType) throws IOException
IOExceptionpublic void write(RandomAccessOutput out) throws IOException
write in interface WritableIOExceptionprotected void write(RandomAccessOutput out, boolean writeElemType) throws IOException
IOExceptionpublic int compareTo(Value obj)
compareTo in interface Comparable<Value>Copyright © 2020–2022. All rights reserved.