Any.ValueType| Constructor and Description |
|---|
ImmutableAnyMapImpl(AnyMap map) |
| 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. |
AnySeq |
asSeq()
returns this Any as an
AnySeq object or throws an InvalidValueTypeException. |
Value |
asValue()
returns this Any as an
Value object or throws an InvalidValueTypeException. |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Any>> |
entrySet() |
boolean |
equals(Object o) |
Any |
get(Object key) |
Boolean |
getBooleanValue(String key) |
Date |
getDateTimeValue(String key) |
Date |
getDateValue(String key) |
Double |
getDoubleValue(String key) |
DataFactory |
getFactory() |
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) |
Any.ValueType |
getValueType() |
int |
hashCode() |
boolean |
isBoolean() |
boolean |
isDate() |
boolean |
isDateTime() |
boolean |
isDouble() |
boolean |
isEmpty() |
boolean |
isLong() |
boolean |
isMap() |
boolean |
isNumber() |
boolean |
isSeq() |
boolean |
isString() |
boolean |
isValue() |
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> m) |
Any |
remove(Object key) |
int |
size() |
Collection<Any> |
values() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic ImmutableAnyMapImpl(AnyMap map)
public void add(String key, Any value)
AnyMappublic AnyMap asMap()
AnyAnyMap object or throws an InvalidValueTypeException.public AnySeq asSeq()
AnyAnySeq object or throws an InvalidValueTypeException.public Value asValue()
AnyValue object or throws an InvalidValueTypeException.public boolean containsKey(Object key)
containsKey in interface Map<String,Any>public boolean containsValue(Object value)
containsValue in interface Map<String,Any>public boolean equals(Object o)
public Boolean getBooleanValue(String key)
getBooleanValue in interface AnyMapkey - The keypublic Date getDateTimeValue(String key)
getDateTimeValue in interface AnyMapkey - The keypublic Date getDateValue(String key)
getDateValue in interface AnyMapkey - The keypublic Double getDoubleValue(String key)
getDoubleValue in interface AnyMapkey - The keypublic DataFactory getFactory()
getFactory in interface Anypublic Long getLongValue(String key)
getLongValue in interface AnyMapkey - The keypublic AnyMap getMap(String key, boolean create)
AnyMappublic AnySeq getSeq(String key, boolean create)
AnyMappublic String getStringValue(String key)
getStringValue in interface AnyMapkey - the keypublic Any.ValueType getValueType()
getValueType in interface Anypublic int hashCode()
public boolean isBoolean()
public boolean isDate()
public boolean isDateTime()
isDateTime in interface Anypublic boolean isDouble()
public boolean isEmpty()
public boolean isLong()
public boolean isMap()
public boolean isNumber()
public boolean isSeq()
public boolean isString()
public boolean isValue()
public Any put(String key, Number value)
AnyMappublic int size()
Copyright © 2019. All rights reserved.