Class JSONMap
java.lang.Object
me.topchetoeu.j2s.compilation.json.JSONMap
- All Implemented Interfaces:
Map<String,
JSONElement>
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
void
clear()
boolean
boolean
containsKey
(Object key) boolean
containsValue
(Object value) entrySet()
boolean
boolean
isEmpty()
boolean
boolean
boolean
boolean
boolean
keySet()
double
double
put
(String key, JSONElement value) void
putAll
(Map<? extends String, ? extends JSONElement> m) set
(String key, Collection<JSONElement> val) set
(String key, Map<String, JSONElement> val) int
size()
values()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
JSONMap
public JSONMap() -
JSONMap
-
-
Method Details
-
get
-
isMap
-
isList
-
isString
-
isNumber
-
isBoolean
-
isNull
-
contains
-
map
-
map
-
list
-
list
-
string
-
string
-
number
-
number
-
bool
-
bool
-
setNull
-
set
-
set
-
set
-
set
-
set
-
size
public int size()- Specified by:
size
in interfaceMap<String,
JSONElement>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceMap<String,
JSONElement>
-
containsKey
- Specified by:
containsKey
in interfaceMap<String,
JSONElement>
-
containsValue
- Specified by:
containsValue
in interfaceMap<String,
JSONElement>
-
get
- Specified by:
get
in interfaceMap<String,
JSONElement>
-
put
- Specified by:
put
in interfaceMap<String,
JSONElement>
-
remove
- Specified by:
remove
in interfaceMap<String,
JSONElement>
-
putAll
- Specified by:
putAll
in interfaceMap<String,
JSONElement>
-
clear
public void clear()- Specified by:
clear
in interfaceMap<String,
JSONElement>
-
keySet
- Specified by:
keySet
in interfaceMap<String,
JSONElement>
-
values
- Specified by:
values
in interfaceMap<String,
JSONElement>
-
entrySet
- Specified by:
entrySet
in interfaceMap<String,
JSONElement>
-