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(java.io.Reader r,
java.lang.String delimiter,
java.util.function.Function<java.lang.String,T> op) |
Modifier and Type | Method and Description |
---|---|
static DelimitRegExIterator<java.lang.String> |
defaultDelimitRegExIterator(java.io.Reader in,
java.lang.String delimiter) |
static IteratorFromReaderFactory<java.lang.String> |
getFactory(java.lang.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(java.lang.String delim,
java.util.function.Function<java.lang.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() |
T |
next() |
protected T |
parseString(java.lang.String s) |
java.lang.Object |
peek() |
remove
public DelimitRegExIterator(java.io.Reader r, java.lang.String delimiter, java.util.function.Function<java.lang.String,T> op)
public static DelimitRegExIterator<java.lang.String> defaultDelimitRegExIterator(java.io.Reader in, java.lang.String delimiter)
protected T parseString(java.lang.String s)
public boolean hasNext()
AbstractIterator
hasNext
in interface java.util.Iterator<T>
hasNext
in class AbstractIterator<T>
public T next()
AbstractIterator
next
in interface java.util.Iterator<T>
next
in class AbstractIterator<T>
public java.lang.Object peek()
public static IteratorFromReaderFactory<java.lang.String> getFactory(java.lang.String delim)
public static <T> IteratorFromReaderFactory<T> getFactory(java.lang.String delim, java.util.function.Function<java.lang.String,T> op)