| Package | Description |
|---|---|
| com.github.underscore | |
| com.github.underscore.lodash |
| Modifier and Type | Method and Description |
|---|---|
static <T> Optional<T> |
Optional.absent() |
Optional<String> |
U.call(String funcName) |
static <E> Optional<E> |
U.detect(Iterable<E> iterable,
Predicate<E> pred) |
Optional<T> |
Optional.filter(Predicate<? super T> predicate) |
static <E> Optional<E> |
U.find(Iterable<E> iterable,
Predicate<E> pred) |
static <E> Optional<E> |
U.findLast(Iterable<E> iterable,
Predicate<E> pred) |
static <T,E> Optional<E> |
U.findWhere(Iterable<E> iterable,
List<Tuple<String,T>> properties) |
<E> Optional<T> |
U.findWhere(List<Tuple<String,E>> properties) |
static <T> Optional<T> |
Optional.fromNullable(T nullableReference) |
Optional<String> |
U.getString() |
<F> Optional<F> |
Optional.map(Function<? super T,F> mapper) |
static <T> Optional<T> |
Optional.of(T arg) |
static <T> Optional<T> |
U.reduce(Iterable<T> iterable,
BinaryOperator<T> func) |
static <T> Optional<T> |
U.reduceRight(Iterable<T> iterable,
BinaryOperator<T> func) |
| Modifier and Type | Method and Description |
|---|---|
U.Chain<Optional<T>> |
U.Chain.find(Predicate<T> pred) |
U.Chain<Optional<T>> |
U.Chain.findLast(Predicate<T> pred) |
<E> U.Chain<Optional<T>> |
U.Chain.findWhere(List<Tuple<String,E>> properties) |
<K,E> Map<K,Optional<E>> |
U.groupBy(Function<E,K> func,
BinaryOperator<E> binaryOperator) |
<F> U.Chain<Map<F,Optional<T>>> |
U.Chain.groupBy(Function<T,F> func,
BinaryOperator<T> binaryOperator) |
static <K,E> Map<K,Optional<E>> |
U.groupBy(Iterable<E> iterable,
Function<E,K> func,
BinaryOperator<E> binaryOperator) |
U.Chain<Optional<T>> |
U.Chain.reduce(BinaryOperator<T> func) |
U.Chain<Optional<T>> |
U.Chain.reduceRight(BinaryOperator<T> func) |
| Modifier and Type | Method and Description |
|---|---|
U.Chain<Optional<T>> |
U.Chain.find(Predicate<T> pred) |
U.Chain<Optional<T>> |
U.Chain.findLast(Predicate<T> pred) |
<E> U.Chain<Optional<T>> |
U.Chain.findWhere(List<Tuple<String,E>> properties) |
<F> U.Chain<Map<F,Optional<T>>> |
U.Chain.groupBy(Function<T,F> func,
BinaryOperator<T> binaryOperator) |
U.Chain<Optional<T>> |
U.Chain.reduce(BinaryOperator<T> func) |
U.Chain<Optional<T>> |
U.Chain.reduceRight(BinaryOperator<T> func) |
Copyright © 2020. All rights reserved.