|
||||||||||
| 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
public class 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, 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(java.lang.Object element)
element - the single value to be returned| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.IteratorhasNext in class NiceIteratorpublic java.lang.Object next()
next in interface java.util.Iteratornext in class NiceIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||