public class PyDeque extends PyObject implements Traverseproc
PyObject.ConversionException| Modifier and Type | Field and Description | 
|---|---|
| static PyType | TYPE | 
gcMonitorGlobal| Modifier and Type | Method and Description | 
|---|---|
| void | __delitem__(PyObject key)Equivalent to the standard Python __delitem__ method. | 
| PyObject | __eq__(PyObject o)Equivalent to the standard Python __eq__ method. | 
| PyObject | __finditem__(PyObject key)Very similar to the standard Python __getitem__ method. | 
| PyObject | __ge__(PyObject o)Equivalent to the standard Python __ge__ method. | 
| PyObject | __gt__(PyObject o)Equivalent to the standard Python __gt__ method. | 
| PyObject | __iadd__(PyObject o)Equivalent to the standard Python __iadd__ method. | 
| PyObject | __iter__()Return an iterator that is used to iterate the element of this sequence. | 
| PyObject | __le__(PyObject o)Equivalent to the standard Python __le__ method. | 
| int | __len__()Equivalent to the standard Python __len__ method. | 
| PyObject | __lt__(PyObject o)Equivalent to the standard Python __lt__ method. | 
| PyObject | __ne__(PyObject o)Equivalent to the standard Python __ne__ method. | 
| boolean | __nonzero__()Equivalent to the standard Python __nonzero__ method. | 
| PyObject | __reduce__()Used for pickling. | 
| void | __setitem__(PyObject index,
           PyObject value)Equivalent to the standard Python __setitem__ method. | 
| void | deque___init__(PyObject[] args,
              String[] kwds) | 
| void | deque_append(PyObject obj)Add obj to the right side of the deque. | 
| void | deque_appendleft(PyObject obj)Add obj to the left side of the deque. | 
| void | deque_clear()Remove all elements from the deque leaving it with length 0. | 
| PyObject | deque_count(PyObject x)Count the number of deque elements equal to x. | 
| void | deque_extend(PyObject iterable)Extend the right side of the deque by appending elements from the 
 iterable argument. | 
| void | deque_extendleft(PyObject iterable)Extend the left side of the deque by appending elements from iterable. | 
| PyObject | deque_pop()Remove and return an element from the right side of the deque. | 
| PyObject | deque_popleft()Remove and return an element from the left side of the deque. | 
| PyObject | deque_remove(PyObject value)Removed the first occurrence of value. | 
| PyObject | deque_reverse()Reverse the elements of the deque in-place and then return None. | 
| void | deque_rotate(int steps)Rotate the deque n steps to the right. | 
| PyObject | getMaxlen()If maxlen is not specified or is None, deques may grow to an arbitrary length. | 
| int | hashCode() | 
| boolean | isMappingType() | 
| boolean | isSequenceType() | 
| boolean | refersDirectlyTo(PyObject ob)Optional operation. | 
| void | setMaxlen(PyObject o) | 
| String | toString() | 
| int | traverse(Visitproc visit,
        Object arg)Traverses all directly contained  PyObjects. | 
__abs__, __add__, __and__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __call__, __cmp__, __coerce__, __coerce_ex__, __complex__, __contains__, __delattr__, __delattr__, __delete__, __delitem__, __delslice__, __delslice__, __dir__, __div__, __divmod__, __ensure_finalizer__, __findattr__, __findattr__, __findattr_ex__, __finditem__, __finditem__, __float__, __floordiv__, __format__, __get__, __getattr__, __getattr__, __getitem__, __getitem__, __getnewargs__, __getslice__, __getslice__, __hash__, __hex__, __iand__, __idiv__, __idivmod__, __ifloordiv__, __ilshift__, __imod__, __imul__, __index__, __int__, __invert__, __ior__, __ipow__, __irshift__, __isub__, __iternext__, __itruediv__, __ixor__, __long__, __lshift__, __mod__, __mul__, __neg__, __not__, __oct__, __or__, __pos__, __pow__, __pow__, __radd__, __rand__, __rdiv__, __rdivmod__, __reduce_ex__, __reduce_ex__, __repr__, __rfloordiv__, __rlshift__, __rmod__, __rmul__, __ror__, __rpow__, __rrshift__, __rshift__, __rsub__, __rtruediv__, __rxor__, __set__, __setattr__, __setattr__, __setitem__, __setitem__, __setslice__, __setslice__, __str__, __sub__, __tojava__, __truediv__, __trunc__, __unicode__, __xor__, _add, _and, _callextra, _cmp, _div, _divmod, _doget, _doget, _doset, _eq, _floordiv, _ge, _gt, _iadd, _iand, _idiv, _idivmod, _ifloordiv, _ilshift, _imod, _imul, _in, _ior, _ipow, _irshift, _is, _isnot, _isub, _itruediv, _ixor, _jcall, _jcallexc, _jthrow, _le, _lshift, _lt, _mod, _mul, _ne, _notin, _or, _pow, _rshift, _sub, _truediv, _xor, asDouble, asIndex, asIndex, asInt, asInt, asIterable, asLong, asLong, asName, asName, asString, asString, asStringOrNull, asStringOrNull, bit_length, conjugate, delDict, delType, dispatch__init__, equals, fastGetClass, fastGetDict, getDict, getType, implementsDescrDelete, implementsDescrGet, implementsDescrSet, invoke, invoke, invoke, invoke, invoke, invoke, isCallable, isDataDescr, isIndex, isInteger, isNumberType, noAttributeError, object___subclasshook__, readonlyAttributeError, setDict, setTypepublic static final PyType TYPE
public PyDeque()
public PyDeque(PyType subType)
public PyObject getMaxlen()
public void setMaxlen(PyObject o)
public final void deque_append(PyObject obj)
public final void deque_appendleft(PyObject obj)
public final void deque_clear()
public final void deque_extend(PyObject iterable)
public final void deque_extendleft(PyObject iterable)
public final PyObject deque_pop()
public final PyObject deque_popleft()
public final PyObject deque_remove(PyObject value)
public final PyObject deque_count(PyObject x)
public final void deque_rotate(int steps)
public final PyObject deque_reverse()
public int __len__()
PyObjectpublic boolean __nonzero__()
PyObjectPyObject is considered true.__nonzero__ in class PyObjectpublic PyObject __finditem__(PyObject key)
PyObject__finditem__ in class PyObjectkey - the key to lookup in this containerpublic void __setitem__(PyObject index, PyObject value)
PyObject__setitem__ in class PyObjectindex - the key whose value will be setvalue - the value to set this key topublic void __delitem__(PyObject key)
PyObject__delitem__ in class PyObjectkey - the key to be removed from the containerpublic PyObject __iter__()
PyObjectIf 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 somting with item
 }
 public PyObject __eq__(PyObject o)
PyObjectpublic PyObject __ne__(PyObject o)
PyObjectpublic PyObject __lt__(PyObject o)
PyObjectpublic PyObject __le__(PyObject o)
PyObjectpublic PyObject __gt__(PyObject o)
PyObjectpublic PyObject __ge__(PyObject o)
PyObjectpublic PyObject __iadd__(PyObject o)
PyObjectpublic PyObject __reduce__()
PyObject__reduce__ in class PyObjectpublic boolean isMappingType()
isMappingType in class PyObjectpublic boolean isSequenceType()
isSequenceType in class PyObjectpublic int traverse(Visitproc visit, Object arg)
TraverseprocPyObjects.
 Like in CPython, arg must be passed
 unmodified to visit as its second parameter.
 If Visitproc.visit(PyObject, Object) returns
 nonzero, this return value
 must be returned immediately by traverse.
 
 Visitproc.visit(PyObject, Object) must not be
 called with a null PyObject-argument.traverse in interface Traverseprocpublic boolean refersDirectlyTo(PyObject ob) throws UnsupportedOperationException
TraverseprocTraverseproc.traverse(Visitproc, Object) with
 a visitproc that just watches out for ob.
 Must return false if ob is null.refersDirectlyTo in interface TraverseprocUnsupportedOperationException