public final class Iterators extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Iterator<T> |
closeable(Iterator<T> it,
BooleanSupplier isClosed) |
static String[] |
lines(String str)
Allows for-loop iteration over the lines of a text
|
static <T> Iterator<T> |
makeImmutable(Iterator<T> it) |
static <T> Stream<T> |
parallelStream(Iterable<T> in) |
static <T> Stream<T> |
stream(Iterable<T> in) |
static <T> List<T> |
toList(Iterable<T> it) |
static String[] |
words(String str)
Split on standard word boundary, i.e.
|
public static String[] words(String str)
str - Any stringpublic static String[] lines(String str)
str - Any Stringpublic static <T> Iterator<T> closeable(Iterator<T> it, BooleanSupplier isClosed)
Copyright © 2015. All rights reserved.