public class Iterables extends Object
| Constructor and Description |
|---|
Iterables() |
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
exists(Iterable<T> input,
Predicate<T> condition) |
static <T> boolean |
forall(Iterable<T> input,
Predicate<T> condition) |
static <T> void |
foreach(Iterable<T> input,
Function<T,Void> condition) |
static <T> T |
head(Iterable<T> iterable) |
static <T> Option<T> |
headOption(Iterable<T> list) |
static <T> boolean |
isEmpty(Iterable<T> list) |
static <T> boolean |
nonEmpty(Iterable<T> list) |
static <K,V> Map<K,V> |
toMap(Iterable<Tuple2<K,V>> tuples) |
Copyright © 2016. All rights reserved.