public class PyDictWrapper extends Object implements Map<PyObject,PyObject>, AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
close() |
boolean |
containsKey(Object key) |
boolean |
containsKey(PyObject key) |
boolean |
containsKey(String key)
An extension to the Map interface that allows the use of String keys without generating warnings.
|
boolean |
containsValue(Object value) |
PyDictWrapper |
copy()
Copy this dictionary into a new dictionary.
|
void |
delItem(Object key) |
Set<Map.Entry<PyObject,PyObject>> |
entrySet()
Note: we are returning a COPY not a VIEW of the entries |
PyObject |
get(Object key) |
PyObject |
get(String key)
An extension to the Map interface that allows the use of String keys without generating warnings.
|
PyObject |
getItem(Object key) |
boolean |
isEmpty() |
Set<PyObject> |
keySet()
Note: we are returning a COPY not a VIEW of the keys |
PyObject |
put(PyObject key,
PyObject value) |
void |
putAll(Map<? extends PyObject,? extends PyObject> m) |
void |
putObject(Object key,
Object value) |
PyObject |
remove(Object key) |
PyObject |
remove(String key) |
void |
setItem(Object key,
Object value) |
int |
size() |
PyObject |
unwrap()
Gets the underlying PyObject.
|
Collection<PyObject> |
values()
Note: we are returning a COPY not a VIEW of the values |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public void close()
close
in interface AutoCloseable
public boolean containsKey(Object key)
containsKey
in interface Map<PyObject,PyObject>
public boolean containsKey(String key)
public boolean containsKey(PyObject key)
public boolean containsValue(Object value)
containsValue
in interface Map<PyObject,PyObject>
public PyObject get(String key)
public void delItem(Object key)
public Collection<PyObject> values()
public Set<Map.Entry<PyObject,PyObject>> entrySet()
public PyObject unwrap()
public PyDictWrapper copy()
Copyright © 2014–2022 Brockmann Consult GmbH. All rights reserved.