public class SingleValueIterator<Value> extends java.lang.Object implements java.util.Iterator<Value>
Iterator
that returns one value for use
with interfaces that only accept Iterator instances.
If given a null
value, it will be assumed this Iterator instance has no value, and hasNext()
will return false.
Modifier and Type | Field and Description |
---|---|
static SingleValueIterator |
EMPTY |
protected Value |
value |
Constructor and Description |
---|
SingleValueIterator() |
SingleValueIterator(Value value) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
Value |
next() |
void |
remove() |
void |
reset(Value value) |
public static final SingleValueIterator EMPTY
public SingleValueIterator()
public SingleValueIterator(Value value)
Copyright © 2007-2017 Cascading Maintainers. All Rights Reserved.