private static class NioSocketConnector.SocketChannelIterator
extends java.lang.Object
implements java.util.Iterator<java.nio.channels.SocketChannel>
| Modifier and Type | Field and Description |
|---|---|
private java.util.Iterator<java.nio.channels.SelectionKey> |
i |
| Modifier | Constructor and Description |
|---|---|
private |
SocketChannelIterator(java.util.Collection<java.nio.channels.SelectionKey> selectedKeys) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
java.nio.channels.SocketChannel |
next() |
void |
remove() |
private SocketChannelIterator(java.util.Collection<java.nio.channels.SelectionKey> selectedKeys)
public boolean hasNext()
hasNext in interface java.util.Iterator<java.nio.channels.SocketChannel>public java.nio.channels.SocketChannel next()
next in interface java.util.Iterator<java.nio.channels.SocketChannel>public void remove()
remove in interface java.util.Iterator<java.nio.channels.SocketChannel>