Package com.restfb
Class Connection.Itr<T>
- java.lang.Object
-
- com.restfb.Connection.Itr<T>
-
- All Implemented Interfaces:
ConnectionIterator<T>
,Iterator<List<T>>
- Enclosing class:
- Connection<T>
protected static class Connection.Itr<T> extends Object implements ConnectionIterator<T>
Iterator over connection pages.- Since:
- 1.6.7
- Author:
- Mark Allen
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
Itr(Connection<T> connection)
Creates a new iterator over the givenconnection
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
List<T>
next()
void
remove()
Connection<T>
snapshot()
gets the connection of the current iteration step.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
Itr
protected Itr(Connection<T> connection)
Creates a new iterator over the givenconnection
.- Parameters:
connection
- The connection over which to iterate.
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<T>
- See Also:
Iterator.hasNext()
-
remove
public void remove()
- Specified by:
remove
in interfaceIterator<T>
- See Also:
Iterator.remove()
-
snapshot
public Connection<T> snapshot()
Description copied from interface:ConnectionIterator
gets the connection of the current iteration step.- Specified by:
snapshot
in interfaceConnectionIterator<T>
- Returns:
- the current connection
- See Also:
ConnectionIterator.snapshot()
-
-