|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.util.iterator.NiceIterator<T>
com.hp.hpl.jena.util.iterator.SingletonIterator<T>
public class SingletonIterator<T>
A ClosableIterator that contains only one element
Constructor Summary | |
---|---|
SingletonIterator(T element)
Constructor |
Method Summary | |
---|---|
boolean |
hasNext()
Can return a single value |
T |
next()
Return the value |
Methods inherited from class com.hp.hpl.jena.util.iterator.NiceIterator |
---|
andThen, andThen, asList, asSet, close, close, emptyIterator, filterDrop, filterKeep, mapWith, remove, removeNext, toList, toSet |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hp.hpl.jena.util.iterator.ExtendedIterator |
---|
andThen, filterDrop, filterKeep, mapWith, removeNext, toList, toSet |
Methods inherited from interface com.hp.hpl.jena.util.iterator.ClosableIterator |
---|
close |
Methods inherited from interface java.util.Iterator |
---|
remove |
Constructor Detail |
---|
public SingletonIterator(T element)
element
- the single value to be returnedMethod Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<T>
hasNext
in class NiceIterator<T>
public T next()
next
in interface java.util.Iterator<T>
next
in class NiceIterator<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |