Class EmptyValueList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<Value>
-
- no.priv.bang.modeling.modelstore.value.EmptyValueList
-
public final class EmptyValueList extends AbstractList<Value> implements ValueList
A list implementation that signifies the nil list value. This list is empty and it cannot have objects added, and it will throw no exceptions on value access.
-
-
Field Summary
Fields Modifier and Type Field Description private Value[]
emptyArray
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description EmptyValueList()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(boolean value)
void
add(double value)
void
add(int index, Value element)
void
add(long value)
void
add(Boolean value)
void
add(Double value)
void
add(Long value)
void
add(String value)
void
add(Propertyset value)
boolean
add(Value e)
void
add(ValueList value)
boolean
equals(Object obj)
Value
get(int index)
int
hashCode()
Value
remove(int index)
Value
set(int i, boolean value)
Value
set(int i, double value)
Value
set(int i, long value)
Value
set(int i, Boolean value)
Value
set(int i, Double value)
Value
set(int i, Long value)
Value
set(int i, String value)
Value
set(int i, Propertyset value)
Value
set(int index, Value element)
Value
set(int i, ValueList value)
int
size()
<T> T[]
toArray(T[] a)
-
Methods inherited from class java.util.AbstractList
addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
addAll, addAll, clear, contains, containsAll, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, replaceAll, retainAll, sort, spliterator, subList, toArray
-
-
-
-
Field Detail
-
emptyArray
private final Value[] emptyArray
-
-
Method Detail
-
set
public Value set(int i, Propertyset value)
-
add
public void add(int index, Value element)
-
add
public boolean add(Value e)
- Specified by:
add
in interfaceCollection<Value>
- Specified by:
add
in interfaceList<Value>
- Overrides:
add
in classAbstractList<Value>
-
add
public void add(Propertyset value)
-
get
public Value get(int index)
-
remove
public Value remove(int index)
-
size
public int size()
- Specified by:
size
in interfaceCollection<Value>
- Specified by:
size
in interfaceList<Value>
- Specified by:
size
in classAbstractCollection<Value>
-
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interfaceCollection<Value>
- Specified by:
toArray
in interfaceList<Value>
- Overrides:
toArray
in classAbstractCollection<Value>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceCollection<Value>
- Specified by:
hashCode
in interfaceList<Value>
- Overrides:
hashCode
in classAbstractList<Value>
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceCollection<Value>
- Specified by:
equals
in interfaceList<Value>
- Overrides:
equals
in classAbstractList<Value>
-
-