| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private PyDeque. | |
| private int | |
| private int | |
| private long | |
| public static final PyType |
| Modifier and Type | Method and Description |
|---|---|
| public void | __delitem__(PyObject
the key to be removed from the container key)Overrides org. Equivalent to the standard Python __delitem__ method. |
| public synchronized PyObject | __eq__(PyObject
the object to compare this with. o)Overrides org. Equivalent to the standard Python __eq__ method. |
| public PyObject | __finditem__(PyObject
the key to lookup in this container key)Overrides org. Very similar to the standard Python __getitem__ method. |
| public synchronized PyObject | __ge__(PyObject
the object to compare this with. o)Overrides org. Equivalent to the standard Python __ge__ method. |
| public synchronized PyObject | __gt__(PyObject
the object to compare this with. o)Overrides org. Equivalent to the standard Python __gt__ method. |
| public synchronized PyObject | __iadd__(PyObject
the object to perform this binary operation with (the right-hand operand). o)Overrides org. Equivalent to the standard Python __iadd__ method. |
| public PyObject | __iter__()
Overrides org. Return an iterator that is used to iterate the element of this sequence. |
| public synchronized PyObject | __le__(PyObject
the object to compare this with. o)Overrides org. Equivalent to the standard Python __le__ method. |
| public int | __len__()
Overrides org. Equivalent to the standard Python __len__ method. |
| public synchronized PyObject | __lt__(PyObject
the object to compare this with. o)Overrides org. Equivalent to the standard Python __lt__ method. |
| public synchronized PyObject | __ne__(PyObject
the object to compare this with. o)Overrides org. Equivalent to the standard Python __ne__ method. |
| public boolean | __nonzero__()
Overrides org. Equivalent to the standard Python __nonzero__ method. |
| public PyObject | |
| public void | __setitem__(PyObject
the key whose value will be set index, PyObject the value to set this key to value)Overrides org. Equivalent to the standard Python __setitem__ method. |
| private PyDeque. | |
| protected static int | |
| pack-priv final PyObject | |
| pack-priv final synchronized void | |
| pack-priv final synchronized PyObject | |
| pack-priv final synchronized PyObject | |
| pack-priv final synchronized PyObject | |
| pack-priv final synchronized PyObject | |
| pack-priv final synchronized PyObject | |
| public final synchronized void | |
| pack-priv final PyObject | |
| pack-priv final synchronized PyObject | |
| pack-priv final synchronized int | |
| pack-priv final synchronized PyObject | |
| pack-priv final synchronized PyObject | |
| pack-priv final synchronized boolean | |
| pack-priv final PyObject | |
| pack-priv final synchronized void | |
| public final synchronized void | |
| public final synchronized void | |
| public final synchronized void | |
| public final synchronized PyObject | |
| public final synchronized void | deque_extend(PyObject iterable)
Extend the right side of the deque by appending elements from the iterable argument. |
| public final synchronized void | deque_extendleft(PyObject iterable)
Extend the left side of the deque by appending elements from iterable. |
| pack-priv final int | |
| public final synchronized PyObject | |
| public final synchronized PyObject | |
| public final synchronized PyObject | |
| public final synchronized PyObject | |
| public final synchronized void | |
| pack-priv final synchronized String | |
| public PyObject | |
| private PyDeque. | |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | refersDirectlyTo(PyObject ob)
Implements org. Optional operation. |
| private PyObject | |
| public void | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| public synchronized int | traverse(Visitproc visit, Object arg)
Implements org. Traverses all directly contained |
| header | back to summary |
|---|---|
| private PyDeque. | |
| maxlen | back to summary |
|---|---|
| private int maxlen | |
| size | back to summary |
|---|---|
| private int size | |
| state | back to summary |
|---|---|
| private long state | |
| TYPE | back to summary |
|---|---|
| public static final PyType TYPE | |
| PyDeque | back to summary |
|---|---|
| public PyDeque() | |
| PyDeque | back to summary |
|---|---|
| public PyDeque(PyType subType) | |
| __delitem__ | back to summary |
|---|---|
| public void __delitem__(PyObject key) Overrides org. Doc from org. Equivalent to the standard Python __delitem__ method. | |
| __eq__ | back to summary |
|---|---|
| public synchronized PyObject __eq__(PyObject o) Overrides org. Doc from org. Equivalent to the standard Python __eq__ method. | |
| __finditem__ | back to summary |
|---|---|
| public PyObject __finditem__(PyObject key) Overrides org. Doc from org. Very similar to the standard Python __getitem__ method. Instead of throwing a KeyError if the item isn't found, this just returns null. Classes that wish to implement __getitem__ should override this method instead (with the appropriate semantics. | |
| __ge__ | back to summary |
|---|---|
| public synchronized PyObject __ge__(PyObject o) Overrides org. Doc from org. Equivalent to the standard Python __ge__ method. | |
| __gt__ | back to summary |
|---|---|
| public synchronized PyObject __gt__(PyObject o) Overrides org. Doc from org. Equivalent to the standard Python __gt__ method. | |
| __iadd__ | back to summary |
|---|---|
| public synchronized PyObject __iadd__(PyObject o) Overrides org. Doc from org. Equivalent to the standard Python __iadd__ method. | |
| __iter__ | back to summary |
|---|---|
| public PyObject __iter__() Overrides org. Doc from org. Return an iterator that is used to iterate the element of this sequence. From version 2.2, this method is the primary protocol for looping over sequences. If a PyObject subclass should support iteration based in the __finditem__() method, it must supply an implementation of __iter__() like this:
public PyObject __iter__() {
return new PySequenceIter(this);
}
When iterating over a python sequence from java code, it should be done with code like
this:
for (PyObject item : seq.asIterable()) {
// Do something with item
}
| |
| __le__ | back to summary |
|---|---|
| public synchronized PyObject __le__(PyObject o) Overrides org. Doc from org. Equivalent to the standard Python __le__ method. | |
| __len__ | back to summary |
|---|---|
| public int __len__() Overrides org. Doc from org. Equivalent to the standard Python __len__ method. Part of the mapping discipline.
| |
| __lt__ | back to summary |
|---|---|
| public synchronized PyObject __lt__(PyObject o) Overrides org. Doc from org. Equivalent to the standard Python __lt__ method. | |
| __ne__ | back to summary |
|---|---|
| public synchronized PyObject __ne__(PyObject o) Overrides org. Doc from org. Equivalent to the standard Python __ne__ method. | |
| __nonzero__ | back to summary |
|---|---|
| public boolean __nonzero__() Overrides org. Doc from org. Equivalent to the standard Python __nonzero__ method. Returns whether of not a given
| |
| __reduce__ | back to summary |
|---|---|
| public PyObject __reduce__() Overrides org. Doc from org. Used for pickling. Default implementation calls object___reduce__. | |
| __setitem__ | back to summary |
|---|---|
| public void __setitem__(PyObject index, PyObject value) Overrides org. Doc from org. Equivalent to the standard Python __setitem__ method. | |
| addBefore | back to summary |
|---|---|
| private PyDeque. | |
| cmp | back to summary |
|---|---|
| protected static int cmp(PyObject o1, int ol1, PyObject o2, int ol2) | |
| deque___copy__ | back to summary |
|---|---|
pack-priv final PyObject deque___copy__()
| |
| deque___delitem__ | back to summary |
|---|---|
pack-priv final synchronized void deque___delitem__(PyObject key)
| |
| deque___eq__ | back to summary |
|---|---|
pack-priv final synchronized PyObject deque___eq__(PyObject o)
| |
| deque___ge__ | back to summary |
|---|---|
pack-priv final synchronized PyObject deque___ge__(PyObject o)
| |
| deque___getitem__ | back to summary |
|---|---|
pack-priv final synchronized PyObject deque___getitem__(PyObject index)
| |
| deque___gt__ | back to summary |
|---|---|
pack-priv final synchronized PyObject deque___gt__(PyObject o)
| |
| deque___iadd__ | back to summary |
|---|---|
pack-priv final synchronized PyObject deque___iadd__(PyObject o)
| |
| deque___init__ | back to summary |
|---|---|
public final synchronized void deque___init__(PyObject[] args, String[] kwds)
| |
| deque___iter__ | back to summary |
|---|---|
pack-priv final PyObject deque___iter__()
| |
| deque___le__ | back to summary |
|---|---|
pack-priv final synchronized PyObject deque___le__(PyObject o)
| |
| deque___len__ | back to summary |
|---|---|
pack-priv final synchronized int deque___len__()
| |
| deque___lt__ | back to summary |
|---|---|
pack-priv final synchronized PyObject deque___lt__(PyObject o)
| |
| deque___ne__ | back to summary |
|---|---|
pack-priv final synchronized PyObject deque___ne__(PyObject o)
| |
| deque___nonzero__ | back to summary |
|---|---|
pack-priv final synchronized boolean deque___nonzero__()
| |
| deque___reduce__ | back to summary |
|---|---|
pack-priv final PyObject deque___reduce__()
| |
| deque___setitem__ | back to summary |
|---|---|
pack-priv final synchronized void deque___setitem__(PyObject index, PyObject value)
| |
| deque_append | back to summary |
|---|---|
| public final synchronized void deque_append(PyObject obj) Add obj to the right side of the deque.
| |
| deque_appendleft | back to summary |
|---|---|
| public final synchronized void deque_appendleft(PyObject obj) Add obj to the left side of the deque.
| |
| deque_clear | back to summary |
|---|---|
| public final synchronized void deque_clear() Remove all elements from the deque leaving it with length 0.
| |
| deque_count | back to summary |
|---|---|
| public final synchronized PyObject deque_count(PyObject x) Count the number of deque elements equal to x.
| |
| deque_extend | back to summary |
|---|---|
| public final synchronized void deque_extend(PyObject iterable) Extend the right side of the deque by appending elements from the iterable argument.
| |
| deque_extendleft | back to summary |
|---|---|
| public final synchronized void deque_extendleft(PyObject iterable) Extend the left side of the deque by appending elements from iterable. Note, the series of left appends results in reversing the order of elements in the iterable argument.
| |
| deque_hashCode | back to summary |
|---|---|
pack-priv final int deque_hashCode()
| |
| deque_pop | back to summary |
|---|---|
| public final synchronized PyObject deque_pop() Remove and return an element from the right side of the deque. If no elements are present, raises an IndexError.
| |
| deque_popleft | back to summary |
|---|---|
| public final synchronized PyObject deque_popleft() Remove and return an element from the left side of the deque. If no elements are present, raises an IndexError.
| |
| deque_remove | back to summary |
|---|---|
| public final synchronized PyObject deque_remove(PyObject value) Removed the first occurrence of value. If not found, raises a ValueError.
| |
| deque_reverse | back to summary |
|---|---|
| public final synchronized PyObject deque_reverse() Reverse the elements of the deque in-place and then return None.
| |
| deque_rotate | back to summary |
|---|---|
| public final synchronized void deque_rotate(int steps) Rotate the deque n steps to the right. If n is negative, rotate to the left. Rotating one step to the right is equivalent to: d.appendleft(d.pop()).
| |
| deque_toString | back to summary |
|---|---|
pack-priv final synchronized String deque_toString()
| |
| getMaxlen | back to summary |
|---|---|
| public PyObject getMaxlen() If maxlen is not specified or is None, deques may grow to an arbitrary length. Otherwise, the deque is bounded to the specified maximum length.
| |
| getNode | back to summary |
|---|---|
| private PyDeque. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isMappingType | back to summary |
|---|---|
| public boolean isMappingType() Overrides org.
| |
| isSequenceType | back to summary |
|---|---|
| public boolean isSequenceType() Overrides org.
| |
| refersDirectlyTo | back to summary |
|---|---|
| public boolean refersDirectlyTo(PyObject ob) throws UnsupportedOperationException Implements org. Doc from org. Optional operation.
Should only be implemented if it is more efficient
than calling
| |
| removeNode | back to summary |
|---|---|
| private PyObject removeNode(PyDeque. | |
| setMaxlen | back to summary |
|---|---|
public void setMaxlen(PyObject o)
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| traverse | back to summary |
|---|---|
| public synchronized int traverse(Visitproc visit, Object arg) Implements org. Doc from org. Traverses all directly contained
| |
| Modifier and Type | Field and Description |
|---|---|
| private PyObject | |
| private PyDeque. | |
| private PyDeque. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| data | back to summary |
|---|---|
| private PyObject data | |
| left | back to summary |
|---|---|
| private PyDeque. | |
| right | back to summary |
|---|---|
| private PyDeque. | |
| Modifier and Type | Field and Description |
|---|---|
| private PyDeque. | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public PyObject | __iternext__()
Implements abstract org. Return the next element of the sequence that this is an iterator for. |
| public boolean | refersDirectlyTo(PyObject ob)
Overrides org. Implements org. Optional operation. |
| public int | traverse(Visitproc visit, Object arg)
Overrides org. Implements org. Traverses all directly contained |
| lastReturned | back to summary |
|---|---|
| private PyDeque. | |
| startState | back to summary |
|---|---|
| private long startState | |
| PyDequeIter | back to summary |
|---|---|
| public PyDequeIter() | |
| __iternext__ | back to summary |
|---|---|
| public PyObject __iternext__() Implements abstract org. Doc from org. Return the next element of the sequence that this is an iterator for. Returns null when the end of the sequence is reached.
| |
| refersDirectlyTo | back to summary |
|---|---|
| public boolean refersDirectlyTo(PyObject ob) throws UnsupportedOperationException Overrides org. Implements org. Doc from org. Optional operation.
Should only be implemented if it is more efficient
than calling
| |
| traverse | back to summary |
|---|---|
| public int traverse(Visitproc visit, Object arg) Overrides org. Implements org. Doc from org. Traverses all directly contained
| |