| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | itertools.
Iterator base class for iterators returned by |
| pack-priv abstract static class | itertools.
Iterator base class used by most methods. |
| pack-priv static class | itertools.
Iterator base class used by |
| Modifier and Type | Field and Description |
|---|---|
| public static final PyString | |
| public static PyString |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| pack-priv static PyTuple | |
| pack-priv static PyTuple | |
| pack-priv static int | |
| public static PyTuple | |
| public static PyTuple |
| __doc__ | back to summary |
|---|---|
| public static final PyString __doc__ | |
| __doc__tee | back to summary |
|---|---|
| public static PyString __doc__tee | |
| itertools | back to summary |
|---|---|
| public itertools() | |
| classDictInit | back to summary |
|---|---|
| public static void classDictInit(PyObject dict) | |
| makeIndexedTuple | back to summary |
|---|---|
| pack-priv static PyTuple makeIndexedTuple(PyTuple pool, int[] indices) | |
| makeIndexedTuple | back to summary |
|---|---|
| pack-priv static PyTuple makeIndexedTuple(PyTuple pool, int[] indices, int end) | |
| py2int | back to summary |
|---|---|
| pack-priv static int py2int(PyObject obj, int defaultValue, String msg) | |
| tee | back to summary |
|---|---|
| public static PyTuple tee(PyObject iterable, final int n) Create a tuple of iterators, each of which is effectively a copy of iterable. | |
| tee | back to summary |
|---|---|
| public static PyTuple tee(PyObject iterable) Create a pair of iterators, each of which is effectively a copy of iterable. | |
ifilter and
ifilterfalse.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private PyObject | |
| private PyObject |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| 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 |
| filterTrue | back to summary |
|---|---|
| private boolean filterTrue | |
| iterator | back to summary |
|---|---|
| private PyObject iterator | |
| predicate | back to summary |
|---|---|
| private PyObject predicate | |
| FilterIterator | back to summary |
|---|---|
| pack-priv FilterIterator(PyObject predicate, PyObject iterable, boolean filterTrue) | |
| __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) 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
| |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected PyObject |
| ItertoolsIterator | back to summary |
|---|---|
| pack-priv ItertoolsIterator() | |
| nextElement | back to summary |
|---|---|
| protected PyObject nextElement(PyObject pyIter) Returns the next element from an iterator. If it raises/throws StopIteration just store the Exception and return null according to PyIterator practice. | |
dropwhile() and takewhile.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private PyObject | |
| private PyObject | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| 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 |
| drop | back to summary |
|---|---|
| private boolean drop | |
| iterator | back to summary |
|---|---|
| private PyObject iterator | |
| predicate | back to summary |
|---|---|
| private PyObject predicate | |
| predicateSatisfied | back to summary |
|---|---|
| private boolean predicateSatisfied | |
| WhileIterator | back to summary |
|---|---|
| pack-priv WhileIterator(PyObject predicate, PyObject iterable, boolean drop) | |
| __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) 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
| |