K - the type of key.V - the type of value.public class JSMap<K,V> extends AbstractMap<K,V>
| Modifier and Type | Class and Description |
|---|---|
static interface |
JSMap.EntrySetCallback<K,V> |
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
JSMap(ScriptEngine engine,
Object object)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
static <K,V> Map<K,V> |
toMap(ScriptEngine engine,
Object object)
JavaScript object to Map.
|
Object |
unwrap()
Unwrap object.
|
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic JSMap(ScriptEngine engine, Object object)
engine - script engine.object - JavaScript object.public Object unwrap()
public static <K,V> Map<K,V> toMap(ScriptEngine engine, Object object)
K - the type of key.V - the type of value.engine - Script engine.object - JavaScript object.Copyright © 2017. All rights reserved.