|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.util.Iterators
Contains convenience methods, and utilities for java.util.Iterators
Constructor Summary | |
Iterators()
|
Method Summary | |
static Collection |
addAll(Iterator iter,
Collection c)
Adds all of the Objects returned by the given Iterator into the given Collection. |
static ArrayList |
asArrayList(Iterator iter)
Creates an ArrayList containing all of the Objects returned by the given Iterator. |
static Collection |
asCollection(Iterator iter,
CollectionFactory cf)
Creates a new Collection from the given CollectionFactory, and adds all of the Objects returned by the given Iterator. |
static HashSet |
asHashSet(Iterator iter)
Creates a HashSet containing all of the Objects returned by the given Iterator. |
static void |
main(String[] args)
For internal debugging purposes only. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Iterators()
Method Detail |
public static ArrayList asArrayList(Iterator iter)
public static HashSet asHashSet(Iterator iter)
public static Collection asCollection(Iterator iter, CollectionFactory cf)
public static Collection addAll(Iterator iter, Collection c)
public static void main(String[] args)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |