| Package | Description |
|---|---|
| com.landawn.abacus | |
| com.landawn.abacus.util | |
| com.landawn.abacus.util.function | |
| com.landawn.abacus.util.stream |
| Modifier and Type | Method and Description |
|---|---|
void |
DataSet.sortBy(Collection<String> columnNames,
Function<? super NoCachingNoUpdating.DisposableObjArray,? extends Comparable> keyMapper) |
DataSet |
DataSet.topBy(Collection<String> columnNames,
int n,
Function<? super NoCachingNoUpdating.DisposableObjArray,? extends Comparable> keyMapper) |
| Modifier and Type | Field and Description |
|---|---|
static Function<String,String[]> |
CSVUtil.CSV_HEADER_PARSER |
static Function<String,String[]> |
CSVUtil.CSV_HEADER_PARSER_BY_SPLITTER |
| Modifier and Type | Method and Description |
|---|---|
static <K,V,R> Function<Map.Entry<K,V>,R> |
Fn.applyByKey(Function<? super K,R> func)
Apply by key.
|
static <K,V,R> Function<Map.Entry<K,V>,R> |
Fn.applyByValue(Function<? super V,R> func)
Apply by value.
|
static <A,B,C,D,R> |
Fn.applyIfNotNullOrDefault(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,D> mapperC,
Function<D,R> mapperD,
R defaultValue)
Apply if not null or default.
|
static <A,B,C,R> Function<A,R> |
Fn.applyIfNotNullOrDefault(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,R> mapperC,
R defaultValue)
Apply if not null or default.
|
static <A,B,R> Function<A,R> |
Fn.applyIfNotNullOrDefault(Function<A,B> mapperA,
Function<B,R> mapperB,
R defaultValue)
Apply if not null or default.
|
static <A,B,C,D,R> |
Fn.applyIfNotNullOrGet(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,D> mapperC,
Function<D,R> mapperD,
Supplier<R> supplier)
Apply if not null or get.
|
static <A,B,C,R> Function<A,R> |
Fn.applyIfNotNullOrGet(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,R> mapperC,
Supplier<R> supplier)
Apply if not null or get.
|
static <A,B,R> Function<A,R> |
Fn.applyIfNotNullOrGet(Function<A,B> mapperA,
Function<B,R> mapperB,
Supplier<R> supplier)
Apply if not null or get.
|
static <K,V,R> Function<Map.Entry<K,V>,R> |
Fn.applyKeyVal(BiFunction<? super K,? super V,R> func)
Apply key val.
|
static Function<byte[],Double> |
Fn.FnB.average() |
static Function<short[],Double> |
Fn.FnS.average() |
static Function<int[],Double> |
Fn.FnI.average() |
static Function<long[],Double> |
Fn.FnL.average() |
static Function<float[],Double> |
Fn.FnF.average() |
static Function<double[],Double> |
Fn.FnD.average() |
static <T> Function<T,Void> |
Fn.c2f(Consumer<? super T> action) |
static <T,R> Function<T,R> |
Fn.c2f(Consumer<? super T> action,
R valueToReturn) |
static <T,U> Function<T,U> |
Fn.cast(Class<U> clazz) |
static <T,A extends NoCachingNoUpdating.DisposableArray<T>> |
Fn.Disposables.cloneArray() |
static <T extends Comparable<? super T>> |
Fn.compareTo(T target) |
static <T> Function<T,Integer> |
Fn.compareTo(T target,
Comparator<? super T> cmp) |
static Function<String,Number> |
Fn.createNumber()
Creates the number.
|
static <K,V> Function<V,Map.Entry<K,V>> |
Fn.entry(Function<? super V,K> keyMapper)
Deprecated.
replaced by
Fn#entryByKeyMapper(Function) |
static <K,V> Function<V,Map.Entry<K,V>> |
Fn.entry(K key)
Deprecated.
replaced by
Fn#entryWithKey(Object) |
static <K,V> Function<V,Map.Entry<K,V>> |
Fn.entryByKeyMapper(Function<? super V,K> keyMapper) |
static <K,V> Function<K,Map.Entry<K,V>> |
Fn.entryByValueMapper(Function<? super K,V> valueMapper) |
static <K,V> Function<V,Map.Entry<K,V>> |
Fn.entryWithKey(K key) |
static <K,V> Function<K,Map.Entry<K,V>> |
Fn.entryWithValue(V value) |
static <A,T,R> Function<T,R> |
Fn.f(A a,
BiFunction<A,T,R> biFunction) |
static <A,B,T,R> Function<T,R> |
Fn.f(A a,
B b,
TriFunction<A,B,T,R> triFunction) |
static <K,V,T> Function<Map.Entry<K,V>,T> |
Fn.Entries.f(BiFunction<? super K,? super V,? extends T> f) |
static <T,R> Function<T,R> |
Fn.f(Function<T,R> predicate) |
static <A,B,T,R,E extends Exception> |
Fn.ff(A a,
B b,
Throwables.TriFunction<A,B,T,R,E> triFunction) |
static <A,T,R,E extends Exception> |
Fn.ff(A a,
Throwables.BiFunction<A,T,R,E> biFunction) |
static <K,V,T,E extends Exception> |
Fn.Entries.ff(Throwables.BiFunction<? super K,? super V,? extends T,E> f) |
static <T,R,E extends Exception> |
Fn.ff(Throwables.Function<T,R,E> function) |
static <T,R,E extends Exception> |
Fn.ff(Throwables.Function<T,R,E> function,
R defaultOnError) |
static <K,V> Function<? super Map<K,? extends Collection<? extends V>>,List<Map<K,V>>> |
Fn.flatToMap()
{a=[1, 2, 3], b=[4, 5, 6], c=[7, 8]} -> [{a=1, b=4, c=7}, {a=2, b=5, c=8}, {a=3, b=6}]
|
static <T> Function<Future<T>,T> |
Fn.futureGet() |
static <T> Function<Future<T>,T> |
Fn.futureGetOrDefaultOnError(T defaultValue) |
static <T> Function<T,T> |
Fn.identity() |
static <T> Function<T,Indexed<T>> |
Fn.indexed()
Returns a stateful
Predicate. |
static <T,R> Function<T,R> |
Fn.Functions.indexed(IndexedFunction<T,R> func)
Returns a stateful
Function. |
static <K,V> Function<Map.Entry<K,V>,Map.Entry<V,K>> |
Fn.inverse() |
static <A extends NoCachingNoUpdating.DisposableArray> |
Fn.Disposables.join(String delimiter) |
static <K,V> Function<Map.Entry<K,V>,K> |
Fn.key() |
static <K,T> Function<T,Keyed<K,T>> |
Fn.keyed(Function<? super T,K> keyMapper) |
static <T,K,V> Function<Map.Entry<Keyed<K,T>,V>,T> |
Fn.kk() |
static <L,R> Function<Pair<L,R>,L> |
Fn.left() |
static Function<char[],Integer> |
Fn.FnC.len() |
static Function<byte[],Integer> |
Fn.FnB.len() |
static Function<short[],Integer> |
Fn.FnS.len() |
static Function<int[],Integer> |
Fn.FnI.len() |
static Function<long[],Integer> |
Fn.FnL.len() |
static Function<float[],Integer> |
Fn.FnF.len() |
static Function<double[],Integer> |
Fn.FnD.len() |
static <T> Function<T[],Integer> |
Fn.len() |
static <T extends CharSequence> |
Fn.length() |
static <K,V,KK> Function<Map.Entry<K,V>,Map.Entry<KK,V>> |
Fn.mapKey(Function<? super K,? extends KK> func) |
static <K,V,VV> Function<Map.Entry<K,V>,Map.Entry<K,VV>> |
Fn.mapValue(Function<? super V,? extends VV> func) |
static <T,R> Function<T,R> |
Fn.memoize(Function<? super T,? extends R> func) |
static Function<String,String> |
Fn.nullToEmpty() |
static <T> Function<List<T>,List<T>> |
Fn.nullToEmptyL()
Deprecated.
replaced by
nullToEmptyList |
static <T> Function<List<T>,List<T>> |
Fn.nullToEmptyList() |
static <K,V> Function<Map<K,V>,Map<K,V>> |
Fn.nullToEmptyM()
Deprecated.
replaced by
nullToEmptyMap |
static <K,V> Function<Map<K,V>,Map<K,V>> |
Fn.nullToEmptyMap() |
static <T> Function<Set<T>,Set<T>> |
Fn.nullToEmptyS()
Deprecated.
replaced by
nullToEmptySet |
static <T> Function<Set<T>,Set<T>> |
Fn.nullToEmptySet() |
static Function<String,Byte> |
Fn.parseByte()
Parses the byte.
|
static Function<String,Double> |
Fn.parseDouble()
Parses the double.
|
static Function<String,Float> |
Fn.parseFloat()
Parses the float.
|
static Function<String,Integer> |
Fn.parseInt()
Parses the int.
|
static Function<String,Long> |
Fn.parseLong()
Parses the long.
|
static Function<String,Short> |
Fn.parseShort()
Parses the short.
|
static <L,R> Function<Pair<L,R>,R> |
Fn.right() |
static <A,T,R> Function<T,R> |
Fn.sf(Object mutex,
A a,
BiFunction<A,T,R> biFunction)
Synchronized
Function. |
static <T,R> Function<T,R> |
Fn.sf(Object mutex,
Function<T,R> function)
Synchronized
Function. |
static <T extends Collection> |
Fn.size() |
static <T extends Map> |
Fn.sizeM() |
static Function<String,String> |
Fn.strip() |
static Function<String,String> |
Fn.stripToEmpty() |
static Function<String,String> |
Fn.stripToNull() |
static Function<byte[],Integer> |
Fn.FnB.sum() |
static Function<short[],Integer> |
Fn.FnS.sum() |
static Function<int[],Integer> |
Fn.FnI.sum() |
static Function<long[],Long> |
Fn.FnL.sum() |
static Function<float[],Float> |
Fn.FnF.sum() |
static Function<double[],Double> |
Fn.FnD.sum() |
static Function<String,String> |
Fn.toCamelCase()
To camel case.
|
static <T> Function<Pair<T,T>,List<T>> |
Fn.Pairs.toList() |
static <T> Function<Triple<T,T,T>,List<T>> |
Fn.Triples.toList() |
static Function<String,String> |
Fn.toLowerCase()
To lower case.
|
static Function<String,String> |
Fn.toLowerCaseWithUnderscore()
To lower case with underscore.
|
static Function<Throwable,RuntimeException> |
Fn.toRuntimeException() |
static <T> Function<Pair<T,T>,Set<T>> |
Fn.Pairs.toSet() |
static <T> Function<Triple<T,T,T>,Set<T>> |
Fn.Triples.toSet() |
static <A extends NoCachingNoUpdating.DisposableArray> |
Fn.Disposables.toStr() |
static <T> Function<T,String> |
Fn.toStr() |
static Function<String,String> |
Fn.toUpperCase()
To upper case.
|
static Function<String,String> |
Fn.toUpperCaseWithUnderscore()
To upper case with underscore.
|
static Function<String,String> |
Fn.trim() |
static Function<String,String> |
Fn.trimToEmpty() |
static Function<String,String> |
Fn.trimToNull() |
static <T> Function<T,Tuple.Tuple1<T>> |
Fn.tuple1() |
static <T> Function<Wrapper<T>,T> |
Fn.unwrap() |
static <K,T> Function<Keyed<K,T>,T> |
Fn.val() |
static <K,V> Function<Map.Entry<K,V>,V> |
Fn.value() |
static <T> Function<T,Wrapper<T>> |
Fn.wrap() |
static <T> Function<T,Wrapper<T>> |
Fn.wrap(ToIntFunction<? super T> hashFunction,
BiPredicate<? super T,? super T> equalsFunction) |
| Modifier and Type | Method and Description |
|---|---|
<TT,EE extends Exception> |
ExceptionalStream.__(Function<? super ExceptionalStream<T,E>,ExceptionalStream<TT,EE>> transfer) |
<R> R |
NoCachingNoUpdating.DisposableBooleanArray.apply(Function<? super boolean[],R> func) |
<R> R |
NoCachingNoUpdating.DisposableByteArray.apply(Function<? super byte[],R> func) |
<R> R |
NoCachingNoUpdating.DisposableCharArray.apply(Function<? super char[],R> func) |
<R> R |
NoCachingNoUpdating.DisposableDeque.apply(Function<? super Deque<T>,R> func) |
<R> R |
NoCachingNoUpdating.DisposableDoubleArray.apply(Function<? super double[],R> func) |
<R> R |
NoCachingNoUpdating.DisposableFloatArray.apply(Function<? super float[],R> func) |
<R> R |
NoCachingNoUpdating.DisposableIntArray.apply(Function<? super int[],R> func) |
<R> R |
NoCachingNoUpdating.DisposableLongArray.apply(Function<? super long[],R> func) |
<R> R |
NoCachingNoUpdating.DisposableEntry.apply(Function<? super Map.Entry<K,V>,R> func) |
<R> R |
NoCachingNoUpdating.DisposableShortArray.apply(Function<? super short[],R> func) |
<R> R |
NoCachingNoUpdating.DisposableArray.apply(Function<? super T[],R> func) |
static <K,V,R> Function<Map.Entry<K,V>,R> |
Fn.applyByKey(Function<? super K,R> func)
Apply by key.
|
static <K,V,R> Function<Map.Entry<K,V>,R> |
Fn.applyByValue(Function<? super V,R> func)
Apply by value.
|
static <A,B,C,D,R> |
Fn.applyIfNotNullOrDefault(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,D> mapperC,
Function<D,R> mapperD,
R defaultValue)
Apply if not null or default.
|
static <A,B,C,D,R> |
Fn.applyIfNotNullOrDefault(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,D> mapperC,
Function<D,R> mapperD,
R defaultValue)
Apply if not null or default.
|
static <A,B,C,D,R> |
Fn.applyIfNotNullOrDefault(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,D> mapperC,
Function<D,R> mapperD,
R defaultValue)
Apply if not null or default.
|
static <A,B,C,D,R> |
Fn.applyIfNotNullOrDefault(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,D> mapperC,
Function<D,R> mapperD,
R defaultValue)
Apply if not null or default.
|
static <A,B,C,R> Function<A,R> |
Fn.applyIfNotNullOrDefault(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,R> mapperC,
R defaultValue)
Apply if not null or default.
|
static <A,B,C,R> Function<A,R> |
Fn.applyIfNotNullOrDefault(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,R> mapperC,
R defaultValue)
Apply if not null or default.
|
static <A,B,C,R> Function<A,R> |
Fn.applyIfNotNullOrDefault(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,R> mapperC,
R defaultValue)
Apply if not null or default.
|
static <A,B,R> Function<A,R> |
Fn.applyIfNotNullOrDefault(Function<A,B> mapperA,
Function<B,R> mapperB,
R defaultValue)
Apply if not null or default.
|
static <A,B,R> Function<A,R> |
Fn.applyIfNotNullOrDefault(Function<A,B> mapperA,
Function<B,R> mapperB,
R defaultValue)
Apply if not null or default.
|
static <A,B,C,D,R> |
Fn.applyIfNotNullOrGet(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,D> mapperC,
Function<D,R> mapperD,
Supplier<R> supplier)
Apply if not null or get.
|
static <A,B,C,D,R> |
Fn.applyIfNotNullOrGet(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,D> mapperC,
Function<D,R> mapperD,
Supplier<R> supplier)
Apply if not null or get.
|
static <A,B,C,D,R> |
Fn.applyIfNotNullOrGet(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,D> mapperC,
Function<D,R> mapperD,
Supplier<R> supplier)
Apply if not null or get.
|
static <A,B,C,D,R> |
Fn.applyIfNotNullOrGet(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,D> mapperC,
Function<D,R> mapperD,
Supplier<R> supplier)
Apply if not null or get.
|
static <A,B,C,R> Function<A,R> |
Fn.applyIfNotNullOrGet(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,R> mapperC,
Supplier<R> supplier)
Apply if not null or get.
|
static <A,B,C,R> Function<A,R> |
Fn.applyIfNotNullOrGet(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,R> mapperC,
Supplier<R> supplier)
Apply if not null or get.
|
static <A,B,C,R> Function<A,R> |
Fn.applyIfNotNullOrGet(Function<A,B> mapperA,
Function<B,C> mapperB,
Function<C,R> mapperC,
Supplier<R> supplier)
Apply if not null or get.
|
static <A,B,R> Function<A,R> |
Fn.applyIfNotNullOrGet(Function<A,B> mapperA,
Function<B,R> mapperB,
Supplier<R> supplier)
Apply if not null or get.
|
static <A,B,R> Function<A,R> |
Fn.applyIfNotNullOrGet(Function<A,B> mapperA,
Function<B,R> mapperB,
Supplier<R> supplier)
Apply if not null or get.
|
static <R> R |
Try.call(Callable<R> cmd,
Function<? super Exception,R> actionOnError) |
static <R> R |
Throwables.call(Throwables.Callable<R,? extends Throwable> cmd,
Function<? super Throwable,R> actionOnError) |
<R> R |
Try.call(Throwables.Function<? super T,R,? extends Exception> cmd,
Function<? super Exception,R> actionOnError) |
static <T,U extends Comparable<? super U>> |
Comparators.comparingBy(Function<? super T,? extends U> keyMapper) |
static <T,U> Comparator<T> |
Comparators.comparingBy(Function<? super T,? extends U> keyMapper,
Comparator<? super U> keyComparator) |
static <T> Comparator<T> |
Comparators.comparingIgnoreCase(Function<? super T,String> keyMapper)
Comparing ignore case.
|
static <T> Predicate<T> |
Fn.Predicates.concurrentDistinctBy(Function<? super T,?> mapper)
Returns a stateful
Predicate. |
ExceptionalStream<T,E> |
ExceptionalStream.difference(Function<? super T,?> mapper,
Collection<?> c) |
Observer<T> |
Observer.distinctBy(Function<? super T,?> keyMapper) |
static <T> Predicate<T> |
Fn.Predicates.distinctBy(Function<? super T,?> mapper)
Returns a stateful
Predicate. |
static <T> ObjIterator<T> |
Iterators.distinctBy(Iterator<? extends T> iter,
Function<? super T,?> keyMapper) |
static <K,V> Function<V,Map.Entry<K,V>> |
Fn.entry(Function<? super V,K> keyMapper)
Deprecated.
replaced by
Fn#entryByKeyMapper(Function) |
static <K,V> Function<V,Map.Entry<K,V>> |
Fn.entryByKeyMapper(Function<? super V,K> keyMapper) |
static <K,V> Function<K,Map.Entry<K,V>> |
Fn.entryByValueMapper(Function<? super K,V> valueMapper) |
static <T,R> Function<T,R> |
Fn.f(Function<T,R> predicate) |
static <T> Consumer<T> |
Fn.f2c(Function<? super T,?> func)
Returns a
Consumer which calls the specified func. |
static <T,R,E extends Throwable> |
Fn.Fnn.ff(Function<T,R> function) |
<U> Observer<U> |
Observer.flatMap(Function<? super T,Collection<U>> map) |
static <T,U> ObjIterator<U> |
Iterators.flatMap(Iterator<? extends T> iter,
Function<? super T,? extends Collection<? extends U>> mapper) |
static <T,U> ObjIterator<U> |
Iterators.flattMap(Iterator<? extends T> iter,
Function<? super T,? extends U[]> mapper) |
static <T,U> ObjIterator<T> |
Iterators.generate(U init,
Predicate<? super U> hasNext,
Function<? super U,T> supplier) |
static <T> Predicate<T> |
Fn.isNull(Function<T,?> valueExtractor)
Checks if is null.
|
static <T> Predicate<T> |
Fn.isNullOrEmpty(Function<T,? extends CharSequence> valueExtractor) |
static <T> Predicate<T> |
Fn.isNullOrEmptyOrBlank(Function<T,? extends CharSequence> valueExtractor) |
static <K,T> Function<T,Keyed<K,T>> |
Fn.keyed(Function<? super T,K> keyMapper) |
<U> Observer<U> |
Observer.map(Function<? super T,U> map) |
static <T,U> ObjIterator<U> |
Iterators.map(Iterator<? extends T> iter,
Function<? super T,U> mapper) |
static <K,V,KK> Function<Map.Entry<K,V>,Map.Entry<KK,V>> |
Fn.mapKey(Function<? super K,? extends KK> func) |
static <K,V,VV> Function<Map.Entry<K,V>,Map.Entry<K,VV>> |
Fn.mapValue(Function<? super V,? extends VV> func) |
static <T> u.Nullable<T> |
Iterables.maxBy(Collection<? extends T> c,
Function<? super T,? extends Comparable> keyMapper)
Returns
Nullable.empty() if the specified Array/Collection is null or empty. |
u.Optional<T> |
ExceptionalStream.maxBy(Function<? super T,? extends Comparable> keyMapper) |
static <T> BinaryOperator<T> |
Fn.BinaryOperators.maxBy(Function<? super T,? extends Comparable> keyMapper) |
static <T> u.Nullable<T> |
Iterables.maxBy(Iterator<? extends T> iter,
Function<? super T,? extends Comparable> keyMapper)
Returns
Nullable.empty() if the specified Array/Collection is null or empty. |
static <T> u.Nullable<T> |
Iterables.maxBy(T[] a,
Function<? super T,? extends Comparable> keyMapper)
Returns
Nullable.empty() if the specified Array/Collection is null or empty. |
static <T> u.Nullable<T> |
Iterables.medianBy(Collection<? extends T> c,
Function<? super T,? extends Comparable> keyMapper)
Returns
Nullable.empty() if the specified Array/Collection is null or empty. |
static <T> u.Nullable<T> |
Iterables.medianBy(T[] a,
Function<? super T,? extends Comparable> keyMapper)
Returns
Nullable.empty() if the specified Array/Collection is null or empty. |
static <T,R> Function<T,R> |
Fn.memoize(Function<? super T,? extends R> func) |
static <T> u.Nullable<T> |
Iterables.minBy(Collection<? extends T> c,
Function<? super T,? extends Comparable> keyMapper)
Returns
Nullable.empty() if the specified Array/Collection is null or empty. |
u.Optional<T> |
ExceptionalStream.minBy(Function<? super T,? extends Comparable> keyMapper) |
static <T> BinaryOperator<T> |
Fn.BinaryOperators.minBy(Function<? super T,? extends Comparable> keyMapper) |
static <T> u.Nullable<T> |
Iterables.minBy(Iterator<? extends T> iter,
Function<? super T,? extends Comparable> keyMapper)
Returns
Nullable.empty() if the specified Array/Collection is null or empty. |
static <T> u.Nullable<T> |
Iterables.minBy(T[] a,
Function<? super T,? extends Comparable> keyMapper)
Returns
Nullable.empty() if the specified Array/Collection is null or empty. |
static <T> Predicate<T> |
Fn.notNull(Function<T,?> valueExtractor)
Not null
|
static <T> Predicate<T> |
Fn.notNullOrEmpty(Function<T,? extends CharSequence> valueExtractor) |
static <T> Predicate<T> |
Fn.notNullOrEmptyOrBlank(Function<T,? extends CharSequence> valueExtractor) |
static <T> Wrapper<T> |
Wrapper.of(T value,
ToIntFunction<? super T> hashFunction,
BiPredicate<? super T,? super T> equalsFunction,
Function<? super T,String> toStringFunction) |
<E2 extends Throwable> |
Result.orElseThrow(Function<? super E,E2> exceptionSupplierIfErrorOccurred)
Or else throw.
|
static <T,U extends Comparable<? super U>> |
Comparators.reversedComparingBy(Function<? super T,? extends U> keyMapper)
Reversed comparing by.
|
static void |
CSVUtil.setCSVHeaderParser(Function<String,String[]> parser) |
static <T,R> Function<T,R> |
Fn.sf(Object mutex,
Function<T,R> function)
Synchronized
Function. |
ExceptionalStream<T,E> |
ExceptionalStream.sortedBy(Function<? super T,? extends Comparable> keyMapper) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
UnaryOperator<T>
Refer to JDK API documentation at: https://docs.oracle.com/javase/8/docs/api/java/util/function/package-summary.html
|
| Modifier and Type | Method and Description |
|---|---|
Function<A,R> |
Collector.finisher() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Collector<T,?,u.Optional<BigDecimal>> |
Collectors.averagingBigDecimal(Function<? super T,BigDecimal> mapper) |
static <T> Collector<T,?,BigDecimal> |
Collectors.averagingBigDecimalForNonEmpty(Function<? super T,BigDecimal> mapper) |
static <T> Collector<T,?,u.Optional<BigDecimal>> |
Collectors.averagingBigInteger(Function<? super T,BigInteger> mapper) |
static <T> Collector<T,?,BigDecimal> |
Collectors.averagingBigIntegerForNonEmpty(Function<? super T,BigInteger> mapper) |
static <T,A,R,RR> Collector<T,A,RR> |
Collectors.collectingAndThen(Collector<T,A,R> downstream,
Function<R,RR> finisher) |
static <T,K> Collector<T,?,Map<K,Long>> |
Collectors.countingBy(Function<? super T,? extends K> keyMapper) |
static <T,K,M extends Map<K,Long>> |
Collectors.countingBy(Function<? super T,? extends K> keyMapper,
Supplier<? extends M> mapFactory) |
static <T,K> Collector<T,?,Map<K,Integer>> |
Collectors.countingIntBy(Function<? super T,? extends K> keyMapper) |
static <T,K,M extends Map<K,Integer>> |
Collectors.countingIntBy(Function<? super T,? extends K> keyMapper,
Supplier<? extends M> mapFactory) |
static <T> Collector<T,?,List<T>> |
Collectors.distinctBy(Function<? super T,?> mapper)
It's copied from StreamEx: https://github.com/amaembo/streamex under Apache License v2 and may be modified.
|
static <T> Collector<T,?,Integer> |
Collectors.distinctCount(Function<? super T,?> mapper)
It's copied from StreamEx: https://github.com/amaembo/streamex under Apache License v2 and may be modified.
|
static <T,T2,U> Collector<T,?,List<U>> |
Collectors.flattMapping(Function<? super T,? extends Collection<? extends T2>> flatMapper,
BiFunction<? super T,? super T2,? extends U> mapper) |
static <T,T2,U,A,R> |
Collectors.flattMapping(Function<? super T,? extends Collection<? extends T2>> flatMapper,
BiFunction<? super T,? super T2,? extends U> mapper,
Collector<? super U,A,R> downstream) |
static <T,U> Collector<T,?,List<U>> |
Collectors.flattMapping(Function<? super T,? extends Collection<? extends U>> mapper) |
static <T,U,A,R> Collector<T,?,R> |
Collectors.flattMapping(Function<? super T,? extends Collection<? extends U>> mapper,
Collector<? super U,A,R> downstream) |
static <T,K> Collector<T,?,Map<K,List<T>>> |
Collectors.groupingBy(Function<? super T,? extends K> keyMapper) |
static <T,K,A,D> Collector<T,?,Map<K,D>> |
Collectors.groupingBy(Function<? super T,? extends K> keyMapper,
Collector<? super T,A,D> downstream) |
static <T,K,A,D,M extends Map<K,D>> |
Collectors.groupingBy(Function<? super T,? extends K> keyMapper,
Collector<? super T,A,D> downstream,
Supplier<? extends M> mapFactory) |
static <T,K,M extends Map<K,List<T>>> |
Collectors.groupingBy(Function<? super T,? extends K> keyMapper,
Supplier<? extends M> mapFactory) |
static <T,K> Collector<T,?,ConcurrentMap<K,List<T>>> |
Collectors.groupingByConcurrent(Function<? super T,? extends K> keyMapper) |
static <T,K,A,D> Collector<T,?,ConcurrentMap<K,D>> |
Collectors.groupingByConcurrent(Function<? super T,? extends K> keyMapper,
Collector<? super T,A,D> downstream) |
static <T,K,A,D,M extends ConcurrentMap<K,D>> |
Collectors.groupingByConcurrent(Function<? super T,? extends K> keyMapper,
Collector<? super T,A,D> downstream,
Supplier<? extends M> mapFactory) |
static <T,K,M extends ConcurrentMap<K,List<T>>> |
Collectors.groupingByConcurrent(Function<? super T,? extends K> keyMapper,
Supplier<? extends M> mapFactory) |
static <T,U> Collector<T,?,List<U>> |
Collectors.mapping(Function<? super T,? extends U> mapper) |
static <T,U,A,R> Collector<T,?,R> |
Collectors.mapping(Function<? super T,? extends U> mapper,
Collector<? super U,A,R> downstream) |
static <T,A,D,R> Collector<T,?,R> |
Collectors.maxAlll(Comparator<? super T> comparator,
Collector<? super T,A,D> downstream,
Function<Pair<u.Optional<T>,D>,R> finisher) |
static <T> Collector<T,?,u.Optional<T>> |
Collectors.maxBy(Function<? super T,? extends Comparable> keyMapper) |
static <T> Collector<T,?,T> |
Collectors.maxByOrGet(Function<? super T,? extends Comparable> keyMapper,
Supplier<? extends T> other) |
static <T> Collector<T,?,T> |
Collectors.maxByOrThrow(Function<? super T,? extends Comparable> keyMapper) |
static <T,X extends RuntimeException> |
Collectors.maxByOrThrow(Function<? super T,? extends Comparable> keyMapper,
Supplier<? extends X> exceptionSupplier) |
static <T,A,D,R> Collector<T,?,R> |
Collectors.minAlll(Comparator<? super T> comparator,
Collector<? super T,A,D> downstream,
Function<Pair<u.Optional<T>,D>,R> finisher) |
static <T> Collector<T,?,u.Optional<T>> |
Collectors.minBy(Function<? super T,? extends Comparable> keyMapper) |
static <T> Collector<T,?,T> |
Collectors.minByOrGet(Function<? super T,? extends Comparable> keyMapper,
Supplier<? extends T> other) |
static <T> Collector<T,?,T> |
Collectors.minByOrThrow(Function<? super T,? extends Comparable> keyMapper) |
static <T,X extends RuntimeException> |
Collectors.minByOrThrow(Function<? super T,? extends Comparable> keyMapper,
Supplier<? extends X> exceptionSupplier) |
static <T> Collector<T,?,u.Optional<Pair<T,T>>> |
Collectors.minMaxBy(Function<? super T,? extends Comparable> keyMapper) |
static <T,R> Collector<T,?,u.Optional<R>> |
Collectors.minMaxBy(Function<? super T,? extends Comparable> keyMapper,
BiFunction<? super T,? super T,? extends R> finisher) |
static <T,U> Collector<T,?,u.Optional<U>> |
Collectors.reducing(Function<? super T,? extends U> mapper,
BinaryOperator<U> op) |
static <T,U> Collector<T,?,U> |
Collectors.reducing(U identity,
Function<? super T,? extends U> mapper,
BinaryOperator<U> op) |
static <T,U> Collector<T,?,U> |
Collectors.reducingOrGet(Function<? super T,? extends U> mapper,
BinaryOperator<U> op,
Supplier<? extends U> other) |
static <T,U> Collector<T,?,U> |
Collectors.reducingOrThrow(Function<? super T,? extends U> mapper,
BinaryOperator<U> op) |
static <T,U,X extends RuntimeException> |
Collectors.reducingOrThrow(Function<? super T,? extends U> mapper,
BinaryOperator<U> op,
Supplier<? extends X> exceptionSupplier) |
static <T> Collector<T,?,BigDecimal> |
Collectors.summingBigDecimal(Function<? super T,BigDecimal> mapper) |
static <T> Collector<T,?,BigInteger> |
Collectors.summingBigInteger(Function<? super T,BigInteger> mapper) |
static <T,K,V> Collector<T,?,BiMap<K,V>> |
Collectors.toBiMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
static <T,K,V> Collector<T,?,BiMap<K,V>> |
Collectors.toBiMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
static <T,K,V> Collector<T,?,BiMap<K,V>> |
Collectors.toBiMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction) |
static <T,K,V> Collector<T,?,BiMap<K,V>> |
Collectors.toBiMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction) |
static <T,K,V> Collector<T,?,BiMap<K,V>> |
Collectors.toBiMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction,
Supplier<BiMap<K,V>> mapFactory) |
static <T,K,V> Collector<T,?,BiMap<K,V>> |
Collectors.toBiMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction,
Supplier<BiMap<K,V>> mapFactory) |
static <T,K,V> Collector<T,?,BiMap<K,V>> |
Collectors.toBiMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
Supplier<BiMap<K,V>> mapFactory) |
static <T,K,V> Collector<T,?,BiMap<K,V>> |
Collectors.toBiMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
Supplier<BiMap<K,V>> mapFactory) |
static <T,K,V> Collector<T,?,ConcurrentMap<K,V>> |
Collectors.toConcurrentMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
static <T,K,V> Collector<T,?,ConcurrentMap<K,V>> |
Collectors.toConcurrentMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
static <T,K,V> Collector<T,?,ConcurrentMap<K,V>> |
Collectors.toConcurrentMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction) |
static <T,K,V> Collector<T,?,ConcurrentMap<K,V>> |
Collectors.toConcurrentMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction) |
static <T,K,V,M extends ConcurrentMap<K,V>> |
Collectors.toConcurrentMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction,
Supplier<? extends M> mapFactory) |
static <T,K,V,M extends ConcurrentMap<K,V>> |
Collectors.toConcurrentMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction,
Supplier<? extends M> mapFactory) |
static <T,K,V,M extends ConcurrentMap<K,V>> |
Collectors.toConcurrentMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
Supplier<? extends M> mapFactory) |
static <T,K,V,M extends ConcurrentMap<K,V>> |
Collectors.toConcurrentMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
Supplier<? extends M> mapFactory) |
static <T,K,V> Collector<T,?,ImmutableMap<K,V>> |
Collectors.toImmutableMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
static <T,K,V> Collector<T,?,ImmutableMap<K,V>> |
Collectors.toImmutableMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
static <T,K,V> Collector<T,?,ImmutableMap<K,V>> |
Collectors.toImmutableMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction) |
static <T,K,V> Collector<T,?,ImmutableMap<K,V>> |
Collectors.toImmutableMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction) |
static <T,K,V> Collector<T,?,Map<K,V>> |
Collectors.toLinkedHashMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
static <T,K,V> Collector<T,?,Map<K,V>> |
Collectors.toLinkedHashMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
static <T,K,V> Collector<T,?,Map<K,V>> |
Collectors.toLinkedHashMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction) |
static <T,K,V> Collector<T,?,Map<K,V>> |
Collectors.toLinkedHashMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction) |
static <T,K,A,D> Collector<T,?,Map<K,D>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Collector<? super T,A,D> downstream) |
static <T,K,A,D,M extends Map<K,D>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Collector<? super T,A,D> downstream,
Supplier<? extends M> mapFactory) |
static <T,K,V> Collector<T,?,Map<K,V>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
static <T,K,V> Collector<T,?,Map<K,V>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
static <T,K,V> Collector<T,?,Map<K,V>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction) |
static <T,K,V> Collector<T,?,Map<K,V>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction) |
static <T,K,V,M extends Map<K,V>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction,
Supplier<? extends M> mapFactory) |
static <T,K,V,M extends Map<K,V>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction,
Supplier<? extends M> mapFactory) |
static <T,K,V,A,D> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
Collector<? super V,A,D> downstream) |
static <T,K,V,A,D> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
Collector<? super V,A,D> downstream) |
static <T,K,V,A,D,M extends Map<K,D>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
Collector<? super V,A,D> downstream,
Supplier<? extends M> mapFactory) |
static <T,K,V,A,D,M extends Map<K,D>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
Collector<? super V,A,D> downstream,
Supplier<? extends M> mapFactory) |
static <T,K,V,M extends Map<K,V>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
Supplier<? extends M> mapFactory) |
static <T,K,V,M extends Map<K,V>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
Supplier<? extends M> mapFactory) |
static <T,K> Collector<T,?,ListMultimap<K,T>> |
Collectors.toMultimap(Function<? super T,? extends K> keyMapper) |
static <T,K,V> Collector<T,?,ListMultimap<K,V>> |
Collectors.toMultimap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
static <T,K,V> Collector<T,?,ListMultimap<K,V>> |
Collectors.toMultimap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper) |
static <T,K,V,C extends Collection<V>,M extends Multimap<K,V,C>> |
Collectors.toMultimap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
Supplier<? extends M> mapFactory) |
static <T,K,V,C extends Collection<V>,M extends Multimap<K,V,C>> |
Collectors.toMultimap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
Supplier<? extends M> mapFactory) |
static <T,K,C extends Collection<T>,M extends Multimap<K,T,C>> |
Collectors.toMultimap(Function<? super T,? extends K> keyMapper,
Supplier<? extends M> mapFactory) |
Copyright © 2021. All rights reserved.