| Package | Description |
|---|---|
| com.github.underscore | |
| com.github.underscore.lodash |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Tuple<A,B> |
Tuple.create(A a,
B b) |
Tuple<T,List<T>> |
U.pop() |
static <T> Tuple<T,List<T>> |
U.pop(List<T> list) |
Tuple<T,List<T>> |
U.set(int index,
T value) |
static <T> Tuple<T,List<T>> |
U.set(List<T> list,
int index,
T value) |
Tuple<T,List<T>> |
U.shift() |
static <T> Tuple<T,List<T>> |
U.shift(List<T> list) |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> List<Tuple<V,K>> |
U.invert(Map<K,V> object) |
static <K,V> List<Tuple<K,V>> |
U.mapObject(Map<K,V> object,
Function<? super V,V> func) |
static <K,V> List<Tuple<K,V>> |
U.object(List<K> keys,
List<V> values) |
static <K,V> List<Tuple<K,V>> |
U.omit(Map<K,V> object,
K... keys) |
static <K,V> List<Tuple<K,V>> |
U.omit(Map<K,V> object,
Predicate<V> pred) |
static <K,V> List<Tuple<K,V>> |
U.pairs(Map<K,V> object) |
static <K,V> List<Tuple<K,V>> |
U.pick(Map<K,V> object,
K... keys) |
static <K,V> List<Tuple<K,V>> |
U.pick(Map<K,V> object,
Predicate<V> pred) |
U.Chain<Tuple<T,List<T>>> |
U.Chain.pop() |
U.Chain<Tuple<T,List<T>>> |
U.Chain.shift() |
| Modifier and Type | Method and Description |
|---|---|
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) |
<E> U.Chain<Optional<T>> |
U.Chain.findWhere(List<Tuple<String,E>> properties) |
static <K,V> Map<K,V> |
U.toMap(List<Tuple<K,V>> tuples) |
static <T,E> List<E> |
U.where(List<E> list,
List<Tuple<String,T>> properties) |
<E> List<T> |
U.where(List<Tuple<String,E>> properties) |
<E> U.Chain<T> |
U.Chain.where(List<Tuple<String,E>> properties) |
static <T,E> Set<E> |
U.where(Set<E> set,
List<Tuple<String,T>> properties) |
| Modifier and Type | Method and Description |
|---|---|
<E> U.Chain<Optional<T>> |
U.Chain.findWhere(List<Tuple<String,E>> properties) |
<E> U.Chain<T> |
U.Chain.where(List<Tuple<String,E>> properties) |
Copyright © 2020. All rights reserved.