Package com.github.underscore.lodash
Class U.Chain<T>
- java.lang.Object
-
- com.github.underscore.U.Chain<T>
-
- com.github.underscore.lodash.U.Chain<T>
-
-
Method Summary
-
-
-
Method Detail
-
firstOrNull
public U.Chain<T> firstOrNull()
- Overrides:
firstOrNull
in classU.Chain<T>
-
firstOrNull
public U.Chain<T> firstOrNull(Predicate<T> pred)
- Overrides:
firstOrNull
in classU.Chain<T>
-
lastOrNull
public U.Chain<T> lastOrNull()
- Overrides:
lastOrNull
in classU.Chain<T>
-
lastOrNull
public U.Chain<T> lastOrNull(Predicate<T> pred)
- Overrides:
lastOrNull
in classU.Chain<T>
-
mapIndexed
public <F> U.Chain<F> mapIndexed(BiFunction<Integer,? super T,F> func)
- Overrides:
mapIndexed
in classU.Chain<T>
-
filterIndexed
public U.Chain<T> filterIndexed(PredicateIndexed<T> pred)
- Overrides:
filterIndexed
in classU.Chain<T>
-
rejectIndexed
public U.Chain<T> rejectIndexed(PredicateIndexed<T> pred)
- Overrides:
rejectIndexed
in classU.Chain<T>
-
filterFalse
public U.Chain<T> filterFalse(Predicate<T> pred)
- Overrides:
filterFalse
in classU.Chain<T>
-
reduce
public <F> U.Chain<F> reduce(BiFunction<F,T,F> func, F zeroElem)
-
reduce
public U.Chain<Optional<T>> reduce(BinaryOperator<T> func)
-
reduceRight
public <F> U.Chain<F> reduceRight(BiFunction<F,T,F> func, F zeroElem)
- Overrides:
reduceRight
in classU.Chain<T>
-
reduceRight
public U.Chain<Optional<T>> reduceRight(BinaryOperator<T> func)
- Overrides:
reduceRight
in classU.Chain<T>
-
max
public U.Chain<Comparable> max()
-
max
public <F extends Comparable<? super F>> U.Chain<T> max(Function<T,F> func)
-
min
public U.Chain<Comparable> min()
-
min
public <F extends Comparable<? super F>> U.Chain<T> min(Function<T,F> func)
-
sort
public U.Chain<Comparable> sort()
-
sortWith
public <F extends Comparable<? super F>> U.Chain<F> sortWith(Comparator<F> comparator)
-
sortBy
public <F extends Comparable<? super F>> U.Chain<T> sortBy(Function<T,F> func)
-
groupBy
public <F> U.Chain<Map<F,Optional<T>>> groupBy(Function<T,F> func, BinaryOperator<T> binaryOperator)
-
forEachRight
public U.Chain<T> forEachRight(Consumer<T> func)
- Overrides:
forEachRight
in classU.Chain<T>
-
containsWith
public U.Chain<Boolean> containsWith(T elem)
- Overrides:
containsWith
in classU.Chain<T>
-
distinctBy
public <F> U.Chain<F> distinctBy(Function<T,F> func)
- Overrides:
distinctBy
in classU.Chain<T>
-
intersection
public U.Chain<T> intersection(List<T>... lists)
- Overrides:
intersection
in classU.Chain<T>
-
difference
public U.Chain<T> difference(List<T>... lists)
- Overrides:
difference
in classU.Chain<T>
-
interposeByList
public U.Chain<T> interposeByList(Iterable<T> interIter)
- Overrides:
interposeByList
in classU.Chain<T>
-
createPermutationWithRepetition
public U.Chain<List<T>> createPermutationWithRepetition(int permutationLength)
-
-