Package org.python.core
Class WrappedIterIterator<E>
- java.lang.Object
-
- org.python.core.WrappedIterIterator<E>
-
- All Implemented Interfaces:
java.util.Iterator<E>
public abstract class WrappedIterIterator<E> extends java.lang.Object implements java.util.Iterator<E>Exposes a Python iter as a Java Iterator.
-
-
Constructor Summary
Constructors Constructor Description WrappedIterIterator(PyObject iter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description PyObjectgetNext()booleanhasNext()abstract Enext()Subclasses must implement this to turn the type returned by the iter to the type expected by Java.voidremove()
-
-
-
Constructor Detail
-
WrappedIterIterator
public WrappedIterIterator(PyObject iter)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<E>
-
next
public abstract E next()
Subclasses must implement this to turn the type returned by the iter to the type expected by Java.- Specified by:
nextin interfacejava.util.Iterator<E>
-
getNext
public PyObject getNext()
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<E>
-
-