T
- The type of the objects returnedpublic class DelimitRegExIterator<T> extends AbstractIterator<T>
Modifier and Type | Class and Description |
---|---|
static class |
DelimitRegExIterator.DelimitRegExIteratorFactory<T> |
Constructor and Description |
---|
DelimitRegExIterator(Reader r,
String delimiter,
java.util.function.Function<String,T> op) |
Modifier and Type | Method and Description |
---|---|
static DelimitRegExIterator<String> |
defaultDelimitRegExIterator(Reader in,
String delimiter) |
static IteratorFromReaderFactory<String> |
getFactory(String delim)
Returns a factory that vends DelimitRegExIterators that read the contents of the
given Reader, splits on the specified delimiter, then returns the result.
|
static <T> IteratorFromReaderFactory<T> |
getFactory(String delim,
java.util.function.Function<String,T> op)
Returns a factory that vends DelimitRegExIterators that reads the contents of the
given Reader, splits on the specified delimiter, applies op, then returns the result.
|
boolean |
hasNext() |
static void |
main(String[] args) |
T |
next() |
protected T |
parseString(String s) |
Object |
peek() |
remove
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public DelimitRegExIterator(Reader r, String delimiter, java.util.function.Function<String,T> op)
public static DelimitRegExIterator<String> defaultDelimitRegExIterator(Reader in, String delimiter)
public boolean hasNext()
AbstractIterator
public T next()
AbstractIterator
public Object peek()
public static IteratorFromReaderFactory<String> getFactory(String delim)
public static <T> IteratorFromReaderFactory<T> getFactory(String delim, java.util.function.Function<String,T> op)
public static void main(String[] args)