public class SerializedList extends AbstractSerializedReferenceType implements SerializedAggregateType, Collection<SerializedValue>
Constructor and Description |
---|
SerializedList(Class<?> type) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(ReferenceTypeVisitor<T> visitor) |
<T> T |
accept(RoleVisitor<T> visitor) |
boolean |
add(SerializedValue element) |
boolean |
addAll(Collection<? extends SerializedValue> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
List<SerializedValue> |
elements() |
SerializedValue |
get(int index) |
Type |
getComponentType() |
boolean |
isEmpty() |
Iterator<SerializedValue> |
iterator() |
List<SerializedValue> |
referencedValues() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
void |
useAs(Type type) |
getId, getUsedTypes, setId
getType, inferType, satisfiesType, satisfiesType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, setId
getType, getUsedTypes
equals, hashCode, parallelStream, removeIf, spliterator, stream
public SerializedList(Class<?> type)
public List<SerializedValue> elements()
elements
in interface SerializedAggregateType
public Type getComponentType()
public void useAs(Type type)
useAs
in interface SerializedReferenceType
useAs
in class AbstractSerializedReferenceType
public <T> T accept(RoleVisitor<T> visitor)
accept
in interface SerializedRole
public <T> T accept(ReferenceTypeVisitor<T> visitor)
accept
in interface SerializedReferenceType
public SerializedValue get(int index)
public int size()
size
in interface Collection<SerializedValue>
public boolean isEmpty()
isEmpty
in interface Collection<SerializedValue>
public boolean contains(Object o)
contains
in interface Collection<SerializedValue>
public Iterator<SerializedValue> iterator()
iterator
in interface Iterable<SerializedValue>
iterator
in interface Collection<SerializedValue>
public Object[] toArray()
toArray
in interface Collection<SerializedValue>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<SerializedValue>
public boolean add(SerializedValue element)
add
in interface Collection<SerializedValue>
public boolean remove(Object o)
remove
in interface Collection<SerializedValue>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<SerializedValue>
public boolean addAll(Collection<? extends SerializedValue> c)
addAll
in interface Collection<SerializedValue>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<SerializedValue>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<SerializedValue>
public void clear()
clear
in interface Collection<SerializedValue>
public List<SerializedValue> referencedValues()
referencedValues
in interface SerializedValue
Copyright © 2020. All rights reserved.