public class SerializedMap extends AbstractSerializedReferenceType implements SerializedAggregateType, Map<SerializedValue,SerializedValue>
Constructor and Description |
---|
SerializedMap(Class<?> type) |
Modifier and Type | Method and Description |
---|---|
<T> T |
accept(ReferenceTypeVisitor<T> visitor) |
<T> T |
accept(RoleVisitor<T> visitor) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
List<SerializedValue> |
elements() |
Set<Map.Entry<SerializedValue,SerializedValue>> |
entrySet() |
SerializedValue |
get(Object key) |
Type |
getMapKeyType() |
Type |
getMapValueType() |
boolean |
isEmpty() |
Set<SerializedValue> |
keySet() |
SerializedValue |
put(SerializedValue key,
SerializedValue value) |
void |
putAll(Map<? extends SerializedValue,? extends SerializedValue> m) |
List<SerializedValue> |
referencedValues() |
SerializedValue |
remove(Object key) |
int |
size() |
String |
toString() |
void |
useAs(Type type) |
Collection<SerializedValue> |
values() |
getId, getUsedTypes, setId
getType, inferType, satisfiesType, satisfiesType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId, setId
getType, getUsedTypes
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public SerializedMap(Class<?> type)
public List<SerializedValue> elements()
elements
in interface SerializedAggregateType
public Type getMapKeyType()
public Type getMapValueType()
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 int size()
size
in interface Map<SerializedValue,SerializedValue>
public boolean isEmpty()
isEmpty
in interface Map<SerializedValue,SerializedValue>
public boolean containsKey(Object key)
containsKey
in interface Map<SerializedValue,SerializedValue>
public boolean containsValue(Object value)
containsValue
in interface Map<SerializedValue,SerializedValue>
public SerializedValue get(Object key)
get
in interface Map<SerializedValue,SerializedValue>
public SerializedValue put(SerializedValue key, SerializedValue value)
put
in interface Map<SerializedValue,SerializedValue>
public SerializedValue remove(Object key)
remove
in interface Map<SerializedValue,SerializedValue>
public void putAll(Map<? extends SerializedValue,? extends SerializedValue> m)
putAll
in interface Map<SerializedValue,SerializedValue>
public void clear()
clear
in interface Map<SerializedValue,SerializedValue>
public Set<SerializedValue> keySet()
keySet
in interface Map<SerializedValue,SerializedValue>
public Collection<SerializedValue> values()
values
in interface Map<SerializedValue,SerializedValue>
public Set<Map.Entry<SerializedValue,SerializedValue>> entrySet()
entrySet
in interface Map<SerializedValue,SerializedValue>
public List<SerializedValue> referencedValues()
referencedValues
in interface SerializedValue
Copyright © 2020. All rights reserved.