public enum Iterators extends Enum<Iterators>
| Modifier and Type | Method and Description |
|---|---|
static <T> Iterator<T> |
composite(Iterator<? extends T> i1,
Iterator<? extends T> i2) |
static <T> Iterator<T> |
filter(Iterator<? extends T> itr,
Osgl.Function<? super T,Boolean> predicate) |
static <T> Iterator<T> |
filterIndex(Iterator<? extends T> itr,
Osgl.Function<Integer,Boolean> predicate) |
static <T> Iterator<T> |
filterUntil(Iterator<? extends T> itr,
Osgl.Function<? super T,Boolean> predicate) |
static <T> Iterator<T> |
filterWhile(Iterator<? extends T> itr,
Osgl.Function<? super T,Boolean> predicate) |
static <T,R> Iterator<R> |
flatMap(Iterator<? extends T> itr,
Osgl.Function<? super T,? extends Iterable<? extends R>> mapper) |
static <T,R> Iterator<R> |
map(Iterator<? extends T> itr,
Osgl.Function<? super T,? extends R> mapper) |
static <T> Iterator<T> |
of(T t) |
static Iterators |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Iterators[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Iterators[] values()
for (Iterators c : Iterators.values()) System.out.println(c);
public static Iterators valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static <T> Iterator<T> filterIndex(Iterator<? extends T> itr, Osgl.Function<Integer,Boolean> predicate)
public static <T> Iterator<T> filter(Iterator<? extends T> itr, Osgl.Function<? super T,Boolean> predicate)
public static <T> Iterator<T> filterWhile(Iterator<? extends T> itr, Osgl.Function<? super T,Boolean> predicate)
public static <T> Iterator<T> filterUntil(Iterator<? extends T> itr, Osgl.Function<? super T,Boolean> predicate)
public static <T> Iterator<T> composite(Iterator<? extends T> i1, Iterator<? extends T> i2)
public static <T> Iterator<T> of(T t)
public static <T,R> Iterator<R> map(Iterator<? extends T> itr, Osgl.Function<? super T,? extends R> mapper)
public static <T,R> Iterator<R> flatMap(Iterator<? extends T> itr, Osgl.Function<? super T,? extends Iterable<? extends R>> mapper)
Copyright © 2017. All Rights Reserved.