| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | |
| pack-priv static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ConcurrentMap | |
| public static final PyType |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PyDictionary(PyType type, int capacity)
Create a dictionary of type with the specified initial capacity. |
| public | |
| public | |
| public | |
| public | |
| public | PyDictionary(PyType type, Map<PyObject, PyObject> map)
Create a new dictionary which is populated with entries the given map. |
| protected | PyDictionary(PyType type, boolean initializeBacking)
Create a new dictionary without initializing table. |
| public | PyDictionary(PyObject[]
The initial elements that is inserted in the dictionary. Even numbered elements
are keys, odd numbered elements are values. elements)Create a new dictionary with the element as content. |
| Modifier and Type | Method and Description |
|---|---|
| public int | __cmp__(PyObject
the object to compare this with. otherObj)Overrides org. Equivalent to the standard Python __cmp__ method. |
| public boolean | __contains__(PyObject
the element to search for in this container. o)Overrides org. Equivalent to the standard Python __contains__ method. |
| public void | __delitem__(PyObject
the key to be removed from the container key)Overrides org. Equivalent to the standard Python __delitem__ method. |
| public PyObject | __eq__(PyObject
the object to compare this with. otherObj)Overrides org. Equivalent to the standard Python __eq__ method. |
| public PyObject | __finditem__(int
the key to lookup in this sequence. index)Overrides org. A variant of the __finditem__ method which accepts a primitive |
| public PyObject | __finditem__(PyObject
the key to lookup in this container key)Overrides org. Very similar to the standard Python __getitem__ method. |
| public PyObject | __iter__()
Overrides org. Return an iterator that is used to iterate the element of this sequence. |
| public int | __len__()
Overrides org. Equivalent to the standard Python __len__ method. |
| public PyObject | __ne__(PyObject
the object to compare this with. otherObj)Overrides org. Equivalent to the standard Python __ne__ method. |
| public boolean | __nonzero__()
Overrides org. Equivalent to the standard Python __nonzero__ method. |
| public void | __setitem__(PyObject
the key whose value will be set key, PyObject the value to set this key to value)Overrides org. Equivalent to the standard Python __setitem__ method. |
| public void | clear()
Implements abstract org. Implements java. Remove all items from the dictionary. |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Implements java. Returns |
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Implements java. Returns |
| public PyDictionary | copy()
Implements abstract org. Return a shallow copy of the dictionary. |
| pack-priv final int | |
| pack-priv final boolean | |
| pack-priv final void | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| protected final PyObject | |
| pack-priv final PyObject | |
| pack-priv final int | |
| protected final void | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| pack-priv final int | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| pack-priv final void | |
| pack-priv final void | |
| pack-priv final PyDictionary | |
| pack-priv static PyObject | |
| pack-priv final PyObject | |
| pack-priv final boolean | |
| pack-priv final PyList | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| pack-priv final PyList | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| pack-priv final PyObject | |
| pack-priv final String | |
| pack-priv final void | |
| pack-priv final PyList | |
| public Set | entrySet()
Implements abstract org. Implements java. Returns a |
| public boolean | equals(Object
object to be compared for equality with this map obj)Overrides org. Implements java. Compares the specified object with this map for equality. |
| public static PyObject | |
| public static PyObject | |
| public PyObject | get(PyObject
the key to lookup in the dictionary. key, PyObject the value to return if the key does not exists in the mapping. defaultObj)Implements abstract org. Return this[key] if the key exists in the mapping, defaultObj is returned otherwise. |
| public PyObject | get(PyObject
the key to lookup in the dictionary. key)Implements abstract org. Return this[key] if the key exists in the mapping, None is returned otherwise. |
| public Object | get(Object
the key whose associated value is to be returned key)Implements java. Returns the value to which the specified key is mapped,
or |
| public ConcurrentMap | |
| public boolean | has_key(PyObject key)
Implements abstract org. Return true if the key exist in the dictionary. |
| public int | hashCode()
Overrides org. Implements java. Returns the hash code value for this map. |
| public boolean | |
| public boolean | |
| public boolean | |
| public PyList | items()
Implements abstract org. Return a copy of the dictionary's list of (key, value) tuple pairs. |
| public PyObject | iteritems()
Implements abstract org. Returns an iterator over (key, value) pairs. |
| public PyObject | iterkeys()
Implements abstract org. Returns an iterator over the dictionary's keys. |
| public PyObject | itervalues()
Implements abstract org. Returns an iterator over the dictionary's values. |
| public PyList | keys()
Implements abstract org. Return a copy of the dictionary's list of keys. |
| public Set | |
| private void | |
| private void | |
| public void | merge(PyObject
a PyObject with a keys() method other, boolean if true, the value from other is used on key-collision override)Implements abstract org. Merge another PyObject that supports keys() with this dict. |
| private void | mergeFromKeys(PyObject
a PyObject with a keys() method other, PyObject the result of other's keys() method keys)Merge another PyObject via its keys() method |
| public void | mergeFromKeys(PyObject
a PyObject with a keys() method other, PyObject the result of other's keys() method keys, boolean if true, the value from other is used on key-collision override)Implements abstract org. Merge another PyObject via its keys() method |
| private void | mergeFromSeq(PyObject
another PyObject other)Merge any iterable object producing iterable objects of length 2 into this dict. |
| public void | mergeFromSeq(PyObject
another PyObject other, boolean if true, the value from other is used on key-collision override)Implements abstract org. Merge any iterable object producing iterable objects of length 2 into this dict. |
| public PyObject | pop(PyObject key)
Implements abstract org. Return a value based on key from the dictionary. |
| public PyObject | pop(PyObject key, PyObject defaultValue)
Implements abstract org. Return a value based on key from the dictionary or default if that key is not found. |
| public PyObject | popitem()
Implements abstract org. Return a random (key, value) tuple pair and remove the pair from the dictionary. |
| public Object | put(Object
key with which the specified value is to be associated key, Object value to be associated with the specified key value)Implements java. Associates the specified value with the specified key in this map (optional operation). |
| public void | putAll(Map<K, V>
mappings to be stored in this map map)Implements java. Copies all of the mappings from the specified map to this map (optional operation). |
| public Object | putIfAbsent(Object
key with which the specified value is to be associated key, Object value to be associated with the specified key value)Implements java. If the specified key is not already associated with a value, associates it with the given value. |
| public Set | |
| public boolean | refersDirectlyTo(PyObject ob)
Implements org. Optional operation. |
| public Object | remove(Object
key whose mapping is to be removed from the map key)Implements java. Removes the mapping for a key from this map if it is present (optional operation). |
| public boolean | remove(Object
key with which the specified value is associated key, Object value expected to be associated with the specified key value)Implements java. Removes the entry for a key only if currently mapped to a given value. |
| public boolean | replace(Object
key with which the specified value is associated key, Object value expected to be associated with the specified key oldValue, Object value to be associated with the specified key newValue)Implements java. Replaces the entry for a key only if currently mapped to a given value. |
| public Object | replace(Object
key with which the specified value is associated key, Object value to be associated with the specified key value)Implements java. Replaces the entry for a key only if currently mapped to some value. |
| public PyObject | setdefault(PyObject
the key to lookup in the dictionary. key)Implements abstract org. Return this[key] if the key exist, otherwise insert key with a None value and return None. |
| public PyObject | setdefault(PyObject
the key to lookup in the dictionary. key, PyObject the default value to insert in the dictionary
if key does not already exist. failobj)Implements abstract org. Return this[key] if the key exist, otherwise insert key with the value of failobj and return failobj |
| public int | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| public int | traverse(Visitproc visit, Object arg)
Implements org. Traverses all directly contained |
| public void | update(PyObject other)
Implements abstract org. Insert all the key:value pairs from |
| public void | |
| public Collection | values()
Implements abstract org. Implements java. Returns a |
| public PyObject | viewitems()
Overrides org. Returns a dict_items on the dictionary's items |
| public PyObject | viewkeys()
Overrides org. Returns a dict_keys on the dictionary's keys |
| public PyObject | viewvalues()
Overrides org. Returns a dict_values on the dictionary's values |