V - public static class QueryResult.SingletonQueryResult<V> extends QueryResult.EmptyQueryResult<V>
This implementation cannot be closed, ie calls to close() do nothing and calls to isClosed() always return false.
QueryResult.EmptyQueryResult<V>, QueryResult.IterableQueryResult<V>, QueryResult.SingletonQueryResult<V>| Constructor and Description |
|---|
QueryResult.SingletonQueryResult(V t) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Iterator<V> |
iterator()
Returns a singleton iterator containing the object passed into the contructor.
|
close, isClosedpublic QueryResult.SingletonQueryResult(V t)
public java.util.Iterator<V> iterator()
This implementation cannot be closed, ie calls to close() do nothing and calls to isClosed() always return false.
iterator in interface java.lang.Iterable<V>iterator in class QueryResult.EmptyQueryResult<V>