| Package | Description |
|---|---|
| in.ashwanthkumar.utils.collections | |
| in.ashwanthkumar.utils.func |
| Modifier and Type | Method and Description |
|---|---|
static <T> boolean |
Iterables.exists(Iterable<T> input,
Predicate<T> condition) |
static <T> List<T> |
Lists.filter(Iterable<T> collection,
Predicate<T> condition) |
static <T> Option<T> |
Lists.find(Iterable<T> collection,
Predicate<T> condition) |
static <T> boolean |
Iterables.forall(Iterable<T> input,
Predicate<T> condition) |
static <T> List<T> |
Lists.takeWhile(Iterable<T> input,
Predicate<T> predicate)
Takes elements from the list as long as the predicate is met and stops after that.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
Predicates.False() |
static <T> Predicate<T> |
Predicates.True() |
Copyright © 2016. All rights reserved.