|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcascading.util.SingleValueIterator<Value>
public class SingleValueIterator<Value>
Class SingleValueIterator is a convenience to creating an Iterator
that returns one value for use
with interfaces that only accept Iterator instances.
null
value, it will be assumed this Iterator instance has no value, and hasNext()
will return false.
Field Summary | |
---|---|
static SingleValueIterator |
EMPTY
|
protected Value |
value
|
Constructor Summary | |
---|---|
SingleValueIterator()
|
|
SingleValueIterator(Value value)
|
Method Summary | |
---|---|
boolean |
hasNext()
|
Value |
next()
|
void |
remove()
|
void |
reset(Value value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SingleValueIterator EMPTY
protected Value value
Constructor Detail |
---|
public SingleValueIterator()
public SingleValueIterator(Value value)
Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<Value>
public Value next()
next
in interface java.util.Iterator<Value>
public void remove()
remove
in interface java.util.Iterator<Value>
public void reset(Value value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |