| 程序包 | 说明 |
|---|---|
| com.jn.langx | |
| com.jn.langx.escape | |
| com.jn.langx.util | |
| com.jn.langx.util.collection | |
| com.jn.langx.util.concurrent.completion | |
| com.jn.langx.util.converter | |
| com.jn.langx.util.function |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
Converter<I,O> |
| 限定符和类型 | 方法和说明 |
|---|---|
Function<String,String> |
Escaper.asFunction()
Returns a
Function that invokes Escaper.escape(String) on this escaper. |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ThrowableFunction<I,O> |
| 限定符和类型 | 方法和说明 |
|---|---|
static <I,O> O |
ClassLoaders.doAction(ClassLoader threadContextClassLoader,
Function<I,O> action,
I input) |
<F> Equivalence<F> |
Equivalence.onResultOf(Function<F,? extends T> function)
Returns a new equivalence relation for
F which evaluates equivalence by first applying
function to the argument, then evaluating using this. |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E,R,C extends Collection<? extends Iterable<E>>> |
Collects.flatMap(C collection,
Function<E,R> mapper)
map a collection to another, flat it
|
static <E,R> Collection<R> |
Collects.flatMap(Function<E,R> mapper,
Collection<E[]> collection)
map a collection to another, flat it
|
<I,O> Pipeline<O> |
Pipeline.flatMap(Function<I,O> mapper) |
static <K,E,C extends Collection<E>> |
Collects.groupBy(C iterable,
Function<E,K> classifier) |
static <K,E> Map<K,List<E>> |
Collects.groupBy(E[] iterable,
Function<E,K> classifier) |
static <K,E> Map<K,List<E>> |
Collects.groupBy(E[] iterable,
Function<E,K> classifier,
Supplier0<Map<K,List<E>>> mapFactory) |
<K> Map<K,List<E>> |
Pipeline.groupBy(Function<E,K> classifier,
Supplier0<Map<K,List<E>>> mapFactory) |
static <K,E,C extends Collection<E>> |
Collects.groupBy(Iterable<E> iterable,
Function<E,K> classifier,
Supplier0<Map<K,List<E>>> mapFactory) |
static <E,K> Collector<E,Map<K,List<E>>> |
Collects.groupingBy(Function<E,K> classifier,
Supplier0<Map<K,List<E>>> mapFactory) |
<O> Pipeline<O> |
Pipeline.map(Function<E,O> mapper) |
static <E,R> Collection<R> |
Collects.map(Object anyObject,
Function<E,R> mapper)
mapping an iterable to a list
|
static <E,K,V> Collector<E,Map<K,V>> |
Collects.toHashMap(Function<E,K> keyMapper,
Function<E,V> valueMapper,
boolean sequential) |
static <E,K,V> Collector<E,Map<K,V>> |
Collects.toHashMap(Function<E,K> keyMapper,
Function<E,V> valueMapper,
boolean sequential) |
static <E,K,V> Collector<E,Map<K,V>> |
Collects.toMap(Supplier0<Map<K,V>> mapFactory,
Function<E,K> keyMapper,
Function<E,V> valueMapper) |
static <E,K,V> Collector<E,Map<K,V>> |
Collects.toMap(Supplier0<Map<K,V>> mapFactory,
Function<E,K> keyMapper,
Function<E,V> valueMapper) |
static <E,K,V> Collector<E,Map<K,V>> |
Collects.toTreeMap(Function<E,K> keyMapper,
Function<E,V> valueMapper,
Comparator<K> comparator) |
static <E,K,V> Collector<E,Map<K,V>> |
Collects.toTreeMap(Function<E,K> keyMapper,
Function<E,V> valueMapper,
Comparator<K> comparator) |
| 限定符和类型 | 方法和说明 |
|---|---|
<U> CompletionStep<U> |
CompletionStep.applyToEither(CompletionStep<? extends T> other,
Function<? super T,U> fn)
Returns a new CompletionStage that, when either this or the
other given stage complete normally, is executed with the
corresponding result as argument to the supplied function.
|
<U> CompletableFuture<U> |
CompletableFuture.applyToEither(CompletionStep<? extends T> other,
Function<? super T,U> fn) |
<U> CompletionStep<U> |
CompletionStep.applyToEitherAsync(CompletionStep<? extends T> other,
Function<? super T,U> fn)
Returns a new CompletionStage that, when either this or the
other given stage complete normally, is executed using this
stage's default asynchronous execution facility, with the
corresponding result as argument to the supplied function.
|
<U> CompletableFuture<U> |
CompletableFuture.applyToEitherAsync(CompletionStep<? extends T> other,
Function<? super T,U> fn) |
<U> CompletionStep<U> |
CompletionStep.applyToEitherAsync(CompletionStep<? extends T> other,
Function<? super T,U> fn,
Executor executor)
Returns a new CompletionStage that, when either this or the
other given stage complete normally, is executed using the
supplied executor, with the corresponding result as argument to
the supplied function.
|
<U> CompletableFuture<U> |
CompletableFuture.applyToEitherAsync(CompletionStep<? extends T> other,
Function<? super T,U> fn,
Executor executor) |
CompletionStep<T> |
CompletionStep.exceptionally(Function<Throwable,? extends T> fn)
Returns a new CompletionStage that, when this stage completes
exceptionally, is executed with this stage's exception as the
argument to the supplied function.
|
CompletableFuture<T> |
CompletableFuture.exceptionally(Function<Throwable,? extends T> fn)
Returns a new CompletableFuture that is completed when this
CompletableFuture completes, with the result of the given
function of the exception triggering this CompletableFuture's
completion when it completes exceptionally; otherwise, if this
CompletableFuture completes normally, then the returned
CompletableFuture also completes normally with the same value.
|
<U> CompletionStep<U> |
CompletionStep.thenApply(Function<? super T,? extends U> fn)
Returns a new CompletionStage that, when this stage completes
normally, is executed with this stage's result as the argument
to the supplied function.
|
<U> CompletableFuture<U> |
CompletableFuture.thenApply(Function<? super T,? extends U> fn) |
<U> CompletionStep<U> |
CompletionStep.thenApplyAsync(Function<? super T,? extends U> fn)
Returns a new CompletionStage that, when this stage completes
normally, is executed using this stage's default asynchronous
execution facility, with this stage's result as the argument to
the supplied function.
|
<U> CompletableFuture<U> |
CompletableFuture.thenApplyAsync(Function<? super T,? extends U> fn) |
<U> CompletionStep<U> |
CompletionStep.thenApplyAsync(Function<? super T,? extends U> fn,
Executor executor)
Returns a new CompletionStage that, when this stage completes
normally, is executed using the supplied Executor, with this
stage's result as the argument to the supplied function.
|
<U> CompletableFuture<U> |
CompletableFuture.thenApplyAsync(Function<? super T,? extends U> fn,
Executor executor) |
<U> CompletionStep<U> |
CompletionStep.thenCompose(Function<? super T,? extends CompletionStep<U>> fn)
Returns a new CompletionStage that is completed with the same
value as the CompletionStage returned by the given function.
|
<U> CompletableFuture<U> |
CompletableFuture.thenCompose(Function<? super T,? extends CompletionStep<U>> fn) |
<U> CompletionStep<U> |
CompletionStep.thenComposeAsync(Function<? super T,? extends CompletionStep<U>> fn)
Returns a new CompletionStage that is completed with the same
value as the CompletionStage returned by the given function,
executed using this stage's default asynchronous execution
facility.
|
<U> CompletableFuture<U> |
CompletableFuture.thenComposeAsync(Function<? super T,? extends CompletionStep<U>> fn) |
<U> CompletionStep<U> |
CompletionStep.thenComposeAsync(Function<? super T,? extends CompletionStep<U>> fn,
Executor executor)
Returns a new CompletionStage that is completed with the same
value as the CompletionStage returned by the given function,
executed using the supplied Executor.
|
<U> CompletableFuture<U> |
CompletableFuture.thenComposeAsync(Function<? super T,? extends CompletionStep<U>> fn,
Executor executor) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
BooleanConverter |
class |
ByteConverter |
class |
DoubleConverter |
class |
FloatConverter |
class |
IntegerConverter |
class |
LongConverter |
class |
NoopConverter |
class |
ShortConverter |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
Mapper<I,O> |
interface |
Operator<V> |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E> Function<E,E> |
Functions.noopFunction()
Function, Mapper
|
Copyright © 2019. All rights reserved.