| Package | Description |
|---|---|
| net.ninjacat.smooth.collections | |
| net.ninjacat.smooth.functions | |
| net.ninjacat.smooth.iterators |
| Modifier and Type | Method and Description |
|---|---|
static <E> List<E> |
Lists.filter(List<E> list,
Predicate<E> filterFunc) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
Predicates.assignableFrom(Class cls)
Predicate that evaluates to true if the class being tested is assignable from the given class.
|
static <T> Predicate<T> |
Predicates.instanceOf(Class cls)
Predicate that evaluates to true if the class being tested is assignable to the given class.
|
static <T> Predicate<T> |
Predicates.isNotNull()
Predicate that checks value for null.
|
static <T> Predicate<T> |
Predicates.isNull()
Predicate that checks value for null.
|
static <T> Predicate<T> |
Predicates.not(Predicate<T> predicate)
Inverts result of predicate.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
Predicates.not(Predicate<T> predicate)
Inverts result of predicate.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Iter.all(Predicate<E> matcher)
Checks if all elements of iterator match supplied predicate
|
Promise<Boolean> |
LazyIter.all(Predicate<E> matcher)
Checks if all elements of collection match supplied predicate
|
boolean |
Iter.any(Predicate<E> matcher)
Checks if any of the elements of iterator match supplied predicate
|
Promise<Boolean> |
LazyIter.any(Predicate<E> matcher)
Checks if any of the elements of collection match supplied predicate
|
Iter<E> |
Iter.filter(Predicate<E> predicate)
Filters out elements of iterable iterator based on predicate.
|
LazyIter<E> |
LazyIter.filter(Predicate<E> predicate)
Filters out elements of iterable collection based on predicate.
|
E |
Iter.find(Predicate<E> matcher,
E defaultValue)
Finds first element in iterator that matches supplied
Predicate |
Promise<E> |
LazyIter.find(Predicate<E> matcher,
E defaultValue)
Finds element in collection that matches supplied
Predicate |
Promise<E> |
Iter.lazyFind(Predicate<E> matcher,
E defaultValue)
Lazy variant of
Iter.find(Predicate, Object) |
Copyright © 2018. All rights reserved.