| 程序包 | 说明 |
|---|---|
| com.jn.langx | |
| com.jn.langx.configuration | |
| com.jn.langx.security.prevention.injection | |
| com.jn.langx.util |
This package contain all most utility classes for java coding
|
| com.jn.langx.util.bean |
Utility package for java bean .
|
| com.jn.langx.util.bit | |
| com.jn.langx.util.collection |
many collection utility class
|
| com.jn.langx.util.concurrent.completion | |
| com.jn.langx.util.converter | |
| com.jn.langx.util.enums | |
| com.jn.langx.util.function | |
| com.jn.langx.util.function.mapper | |
| com.jn.langx.util.function.mapper.literal | |
| com.jn.langx.util.net.http | |
| com.jn.langx.util.valuegetter |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
Converter<I,O> |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
AbstractAccessor.get(K key,
Function<Object,Object> mapper) |
Boolean |
AbstractAccessor.getBoolean(K key,
Function<Object,Boolean> mapper) |
Byte |
AbstractAccessor.getByte(K key,
Function<Object,Byte> mapper) |
Character |
AbstractAccessor.getCharacter(K key,
Function<Object,Character> mapper) |
Double |
AbstractAccessor.getDouble(K key,
Function<Object,Double> mapper) |
Float |
AbstractAccessor.getFloat(K key,
Function<Object,Float> mapper) |
Integer |
AbstractAccessor.getInteger(K key,
Function<Object,Integer> mapper) |
Long |
AbstractAccessor.getLong(K key,
Function<Object,Long> mapper) |
Short |
AbstractAccessor.getShort(K key,
Function<Object,Short> mapper) |
String |
AbstractAccessor.getString(K key,
Function<Object,String> mapper) |
| 限定符和类型 | 方法和说明 |
|---|---|
T |
MultipleLevelConfigurationRepository.getById(String id,
Function<List<T>,T> mapper) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CommandLineInjectionPreventionHandler |
class |
InjectionPreventionHandler |
class |
LogInjectionPreventionHandler |
class |
SqlInjectionPreventionHandler
目前这个做法,太过暴力,不适合将其运用到所有的参数上。
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
ThrowableFunction<I,O>
这是对 Function的扩展,用于支持当函数执行过程中出现任何错误,都会将异常转换为RuntimeException。
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <I,O> O |
ClassLoaders.doAction(ClassLoader threadContextClassLoader,
Function<I,O> action,
I input) |
static String |
Strings.join(String separator,
String prefix,
String suffix,
Iterator objects,
Function<Object,String> mapper,
Predicate2<Integer,String> predicate) |
<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 <X extends RuntimeException> |
Preconditions.outOfBoundsExceptionFormatter(Function<String,X> f)
Returns an out-of-bounds exception formatter from an given exception
factory.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <KEY,BEAN> Map<KEY,BEAN> |
Beans.asHashMap(Iterable<BEAN> collection,
Function<BEAN,KEY> keySupplier) |
static <KEY,BEAN> Map<KEY,BEAN> |
Beans.asLinkedHashMap(Iterable<BEAN> collection,
Function<BEAN,KEY> keySupplier) |
static <KEY,BEAN> Map<KEY,BEAN> |
Beans.asTreeMap(Iterable<BEAN> collection,
Function<BEAN,KEY> keySupplier) |
static <BEAN,CI extends Iterable<BEAN>,O> |
Beans.getFieldList(CI beans,
Function<BEAN,O> fieldExtractor) |
static <BEAN,CI extends Iterable<BEAN>,O> |
Beans.getFieldList(CI beans,
Predicate<BEAN> predicate,
Function<BEAN,O> fieldExtractor) |
static <BEAN,CI extends Iterable<BEAN>,O> |
Beans.getFieldSet(CI collection,
Function<BEAN,O> function) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> int |
Masks.createMask(Collection<T> operandHolders,
Function<T,Integer> mapper) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E1,C1 extends Collection<E1>,E2,C2 extends Collection<E2>> |
Collects.addTo(C1 srcCollection,
C2 targetCollection,
Function<E1,E2> mapper) |
static <E> E |
Collects.apply(E input,
Function<E,E>... mappers) |
static <X,Y,E,C extends Collection<E>> |
Collects.diff(X oldObject,
Function<X,E> oldMapper,
Y newObject,
Function<Y,E> newMapper) |
static <X,Y,E,C extends Collection<E>> |
Collects.diff(X oldObject,
Function<X,E> oldMapper,
Y newObject,
Function<Y,E> newMapper) |
static <X,Y,E,C extends Collection<E>> |
Collects.diff(X oldObject,
Function<X,E> oldMapper,
Y newObject,
Function<Y,E> newMapper,
Comparator<E> elementComparator) |
static <X,Y,E,C extends Collection<E>> |
Collects.diff(X oldObject,
Function<X,E> oldMapper,
Y newObject,
Function<Y,E> newMapper,
Comparator<E> elementComparator) |
static <X,Y,E,C extends Collection<E>> |
Collects.diff(X oldObject,
Function<X,E> oldMapper,
Y newObject,
Function<Y,E> newMapper,
Comparator<E> elementComparator,
KeyBuilder<String,E> keyBuilder) |
static <X,Y,E,C extends Collection<E>> |
Collects.diff(X oldObject,
Function<X,E> oldMapper,
Y newObject,
Function<Y,E> newMapper,
Comparator<E> elementComparator,
KeyBuilder<String,E> keyBuilder) |
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) |
<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> List<List<E>> |
Collects.partitionBy(E[] c,
Function<E,K> classifier) |
<K> Pipeline<List<E>> |
Pipeline.partitionBy(Function<E,K> classifier) |
static <E,K> List<List<E>> |
Collects.partitionBy(Iterable<E> c,
Function<E,K> classifier) |
static <E,K> List<List<E>> |
Collects.partitionBy(Iterator<E> c,
Function<E,K> classifier) |
static <E,K> Collector<E,Map<K,List<E>>> |
Collects.partitioningBy(Function<E,K> classifier) |
static <K,V> V |
Maps.putIfAbsent(Map<K,V> map,
K key,
Function<K,V> valueFactory) |
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 |
CharacterConverter |
class |
DoubleConverter |
class |
FloatConverter |
class |
IntegerConverter |
class |
LongConverter |
class |
LongToDateConverter |
class |
NoopConverter |
class |
ShortConverter |
class |
StringToDateConverter |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CommonEnumByNameConverter<T extends CommonEnum> |
class |
EnumByNameConverter |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
Mapper<I,O> |
interface |
Operator<V> |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E> Function<E,E> |
Functions.noopFunction()
Function, Mapper
|
static Function<String,String> |
Functions.toLowerCase() |
static Function<String,String> |
Functions.toUpperCase() |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
StringLiteralMapper<V> |
| 限定符和类型 | 类和说明 |
|---|---|
class |
LongToDateMapper |
| 限定符和类型 | 类和说明 |
|---|---|
class |
LongStringToDateMapper |
class |
ToBooleanMapper |
class |
ToByteMapper |
class |
ToCharMapper |
class |
ToDoubleMapper |
class |
ToFloatMapper |
class |
ToIntegerMapper |
class |
ToLongMapper |
class |
ToShortMapper |
class |
ToStringMapper |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
HttpQueryStrings.toQueryString(Map<String,Object> map,
boolean encode,
Function2<String,String,String> keyMapper,
Map<Class,Function<Object,String>> converterMap) |
static String |
HttpQueryStrings.toQueryString(Map<String,Object> map,
Map<Class,Function<Object,String>> converterMap)
不会对URL中的特殊字符做处理
|
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
ValueGetter2.get(K key,
Function<Object,Object> mapper) |
Boolean |
ValueGetter2.getBoolean(K key,
Function<Object,Boolean> mapper) |
Byte |
ValueGetter2.getByte(K key,
Function<Object,Byte> mapper) |
Character |
ValueGetter2.getCharacter(K key,
Function<Object,Character> mapper) |
Double |
ValueGetter2.getDouble(K key,
Function<Object,Double> mapper) |
Float |
ValueGetter2.getFloat(K key,
Function<Object,Float> mapper) |
Integer |
ValueGetter2.getInteger(K key,
Function<Object,Integer> mapper) |
Long |
ValueGetter2.getLong(K key,
Function<Object,Long> mapper) |
Short |
ValueGetter2.getShort(K key,
Function<Object,Short> mapper) |
String |
ValueGetter2.getString(K key,
Function<Object,String> mapper) |
| 构造器和说明 |
|---|
StreamValueGetter(Function mapper) |
Copyright © 2021. All rights reserved.