|
|||||||||||
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
com.hp.hpl.jena.util.iterator.SingletonIterator
A ClosableIterator that contains only one element
Constructor Summary | |
SingletonIterator(java.lang.Object element)
Constructor |
Method Summary | |
boolean |
hasNext()
Can return a single value |
java.lang.Object |
next()
Return the value |
Methods inherited from class com.hp.hpl.jena.util.iterator.NiceIterator |
andThen, andThen, close, filterDrop, filterKeep, mapWith, remove |
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 |
Methods inherited from interface com.hp.hpl.jena.util.iterator.ClosableIterator |
close |
Methods inherited from interface java.util.Iterator |
remove |
Constructor Detail |
public SingletonIterator(java.lang.Object element)
element
- the single value to be returnedMethod Detail |
public boolean hasNext()
hasNext
in interface java.util.Iterator
hasNext
in class NiceIterator
public java.lang.Object next()
next
in interface java.util.Iterator
next
in class NiceIterator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |