| java.lang.Object com.hp.hpl.jena.util.IteratorCollection
IteratorCollection | public class IteratorCollection (Code) | | author: hedgehog |
Method Summary | |
public static List | iteratorToList(Iterator it) Answer the elements of the given iterator as a list, in the order that they
arrived from the iterator. | public static Set | iteratorToSet(Iterator i) Answer the elements of the given iterator as a set. |
iteratorToList | public static List iteratorToList(Iterator it)(Code) | | Answer the elements of the given iterator as a list, in the order that they
arrived from the iterator. The iterator is consumed by this operation:
even if an exception is thrown, the iterator will be closed.
Parameters: it - the iterator to convert a list of the elements of it , in order |
iteratorToSet | public static Set iteratorToSet(Iterator i)(Code) | | Answer the elements of the given iterator as a set. The iterator is consumed
by the operation. Even if an exception is thrown, the iterator will be closed.
Parameters: i - the iterator to convert A set of the members of i |
|
|