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:
firstOrNullin classU.Chain<T>
-
firstOrNull
public U.Chain<T> firstOrNull(Predicate<T> pred)
- Overrides:
firstOrNullin classU.Chain<T>
-
lastOrNull
public U.Chain<T> lastOrNull()
- Overrides:
lastOrNullin classU.Chain<T>
-
lastOrNull
public U.Chain<T> lastOrNull(Predicate<T> pred)
- Overrides:
lastOrNullin classU.Chain<T>
-
mapIndexed
public <F> U.Chain<F> mapIndexed(BiFunction<Integer,? super T,F> func)
- Overrides:
mapIndexedin classU.Chain<T>
-
filterIndexed
public U.Chain<T> filterIndexed(PredicateIndexed<T> pred)
- Overrides:
filterIndexedin classU.Chain<T>
-
rejectIndexed
public U.Chain<T> rejectIndexed(PredicateIndexed<T> pred)
- Overrides:
rejectIndexedin classU.Chain<T>
-
filterFalse
public U.Chain<T> filterFalse(Predicate<T> pred)
- Overrides:
filterFalsein 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:
reduceRightin classU.Chain<T>
-
reduceRight
public U.Chain<Optional<T>> reduceRight(BinaryOperator<T> func)
- Overrides:
reduceRightin 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:
forEachRightin classU.Chain<T>
-
containsWith
public U.Chain<Boolean> containsWith(T elem)
- Overrides:
containsWithin classU.Chain<T>
-
distinctBy
public <F> U.Chain<F> distinctBy(Function<T,F> func)
- Overrides:
distinctByin classU.Chain<T>
-
intersection
public U.Chain<T> intersection(List<T>... lists)
- Overrides:
intersectionin classU.Chain<T>
-
difference
public U.Chain<T> difference(List<T>... lists)
- Overrides:
differencein classU.Chain<T>
-
interposeByList
public U.Chain<T> interposeByList(Iterable<T> interIter)
- Overrides:
interposeByListin classU.Chain<T>
-
createPermutationWithRepetition
public U.Chain<List<T>> createPermutationWithRepetition(int permutationLength)
-
-