public enum Iterators extends Enum<Iterators>
Created with IntelliJ IDEA. User: luog Date: 23/10/13 Time: 6:13 PM To change this template use File | Settings | File Templates.
| Modifier and Type | Method and Description |
|---|---|
static <T,R> Iterator<R> |
collect(Iterator<? extends T> itr,
String path) |
static <T> Iterator<T> |
composite(Iterator<? extends T> i1,
Iterator<? extends T> i2) |
static <T> Iterator<T> |
filter(Iterator<? extends T> itr,
Lang.Function<? super T,Boolean> predicate) |
static <T> Iterator<T> |
filterIndex(Iterator<? extends T> itr,
Lang.Function<Integer,Boolean> predicate) |
static <T> Iterator<T> |
filterUntil(Iterator<? extends T> itr,
Lang.Function<? super T,Boolean> predicate) |
static <T> Iterator<T> |
filterWhile(Iterator<? extends T> itr,
Lang.Function<? super T,Boolean> predicate) |
static <T,R> Iterator<R> |
flatMap(Iterator<? extends T> itr,
Lang.Function<? super T,? extends Iterable<? extends R>> mapper) |
static <T,R> Iterator<R> |
map(Iterator<? extends T> itr,
Lang.Function<? super T,? extends R> mapper) |
static <T> Iterator<T> |
nil() |
static Iterator |
of(Object t) |
static Iterator |
ofArray(Object array) |
static <T> Iterator<T> |
singleton(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 final Iterator NULL
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> nil()
public static <T> Iterator<T> filterIndex(Iterator<? extends T> itr, Lang.Function<Integer,Boolean> predicate)
public static <T> Iterator<T> filter(Iterator<? extends T> itr, Lang.Function<? super T,Boolean> predicate)
public static <T> Iterator<T> filterWhile(Iterator<? extends T> itr, Lang.Function<? super T,Boolean> predicate)
public static <T> Iterator<T> filterUntil(Iterator<? extends T> itr, Lang.Function<? super T,Boolean> predicate)
public static <T> Iterator<T> composite(Iterator<? extends T> i1, Iterator<? extends T> i2)
public static <T> Iterator<T> singleton(T t)
public static <T,R> Iterator<R> map(Iterator<? extends T> itr, Lang.Function<? super T,? extends R> mapper)
public static <T,R> Iterator<R> flatMap(Iterator<? extends T> itr, Lang.Function<? super T,? extends Iterable<? extends R>> mapper)
Copyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.