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) |
public static final SingleValueIterator EMPTY
public SingleValueIterator()
public SingleValueIterator(Value value)
Copyright © 2007-2015 Xplenty, Inc. All Rights Reserved.