public final class AnyMapImpl extends AbstractAny implements AnyMap
Any.ValueType_valueType| Modifier and Type | Method and Description |
|---|---|
void |
add(String key,
Any value)
Adds the given value to the mapped entry of the given key.
|
AnyMap |
asMap()
returns this Any as an
AnyMap object or throws an InvalidValueTypeException. |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Any>> |
entrySet() |
boolean |
equals(Object obj) |
Any |
get(Object key) |
Boolean |
getBooleanValue(String key) |
Date |
getDateTimeValue(String key) |
Date |
getDateValue(String key) |
Double |
getDoubleValue(String key) |
Long |
getLongValue(String key) |
AnyMap |
getMap(String key) |
AnyMap |
getMap(String key,
boolean create)
Gets the map and optionally creates one under the given key if not present.
|
AnySeq |
getSeq(String key) |
AnySeq |
getSeq(String key,
boolean create)
Gets the seq and optionally creates one under the given key if not present.
|
String |
getStringValue(String key) |
Value |
getValue(String key) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<Any> |
iterator() |
Set<String> |
keySet() |
Any |
put(String key,
Any value) |
Any |
put(String key,
Boolean value) |
Any |
put(String key,
Number value)
Long, Integer, Short and Byte values will be converted to Value object of type LONG, all others to Value object
of type DOUBLE.
|
Any |
put(String key,
String value) |
void |
putAll(Map<? extends String,? extends Any> map) |
Any |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<Any> |
values() |
asSeq, asValue, getFactory, getValueType, isBoolean, isDate, isDateTime, isDouble, isLong, isMap, isNumber, isSeq, isString, isValueclone, finalize, getClass, notify, notifyAll, wait, wait, waitasSeq, asValue, getFactory, getValueType, isBoolean, isDate, isDateTime, isDouble, isLong, isMap, isNumber, isSeq, isString, isValueforEach, spliteratorcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic void add(String key, Any value)
public boolean isEmpty()
public Any put(String key, Number value)
public int size()
public String getStringValue(String key)
getStringValue in interface AnyMapkey - the keypublic Double getDoubleValue(String key)
getDoubleValue in interface AnyMapkey - The keypublic Long getLongValue(String key)
getLongValue in interface AnyMapkey - The keypublic Boolean getBooleanValue(String key)
getBooleanValue in interface AnyMapkey - The keypublic Date getDateValue(String key)
getDateValue in interface AnyMapkey - The keypublic Date getDateTimeValue(String key)
getDateTimeValue in interface AnyMapkey - The keypublic int hashCode()
public boolean equals(Object obj)
public boolean containsKey(Object key)
containsKey in interface Map<String,Any>public boolean containsValue(Object value)
containsValue in interface Map<String,Any>public AnyMap asMap()
AnyMap object or throws an InvalidValueTypeException.asMap in interface AnyasMap in class AbstractAnyorg.eclipse.smila.datamodel.impl.AbstractAny#asMap()public AnyMap getMap(String key, boolean create)
getMap in interface AnyMapkey - The keycreate - if true and the key is not yet used, create a new map. else just return null.org.eclipse.smila.datamodel.AnyMap#getMap(java.lang.String, boolean)Copyright © 2019. All rights reserved.