| 程序包 | 说明 |
|---|---|
| com.jn.langx.classpath | |
| com.jn.langx.distributed.cluster.loadbalance | |
| com.jn.langx.el.boundary | |
| 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.collection |
many collection utility class
|
| com.jn.langx.util.enums | |
| com.jn.langx.util.function | |
| com.jn.langx.util.function.predicate | |
| com.jn.langx.util.function.predicate.filter | |
| com.jn.langx.util.io.file | |
| com.jn.langx.util.io.file.filter | |
| com.jn.langx.util.io.file.filter.warp | |
| com.jn.langx.util.net | |
| com.jn.langx.util.spi |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
ResourceFilter
Filter predicate to determine which scanned resources should be returned.
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<NODE> |
LoadBalancer.getNodes(Predicate<NODE> predicate) |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
Boundary |
| 限定符和类型 | 类和说明 |
|---|---|
class |
CommonBoundary |
class |
CommonExpressionBoundary |
class |
MathExpressionBoundary |
| 限定符和类型 | 方法和说明 |
|---|---|
protected List<Predicate<String>> |
CommonBoundary.getPredicates() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
CommonBoundary.addPredicate(Predicate<String> predicate) |
| 限定符和类型 | 方法和说明 |
|---|---|
Predicate<T> |
Equivalence.equivalentTo(T target)
Returns a predicate that evaluates to true if and only if the input is
equivalent to
target according to this equivalence relation. |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
SystemPropertys.setPropertyIfMatched(String key,
Predicate<String> predicate,
String value)
如果根据key获取到的值满足 predicate, 则将值设置为value
|
static <T> T |
Preconditions.test(Predicate<T> predicate,
T argument) |
static <T> T |
Preconditions.test(Predicate<T> predicate,
T argument,
String message) |
static <T> T |
Preconditions.test(Predicate<T> predicate,
T argument,
Supplier<Object[],String> messageSupplier,
Object... params) |
static <T> T |
Objs.useValueIfMatch(Supplier0<T> valueSupplier,
Predicate<T> predicate,
Supplier<T,T> defaultSupplier) |
static <T> T |
Objs.useValueIfMatch(T value,
Predicate<T> predicate,
Supplier<T,T> defaultSupplier) |
static <T> T |
Objs.useValueIfMatch(T value,
Predicate<T> predicate,
T defaultValue) |
static <T> T |
Objs.useValueIfNotMatch(Supplier0<T> valueSupplier,
Predicate<T> predicate,
Supplier<T,T> defaultSupplier) |
static <T> T |
Objs.useValueIfNotMatch(T value,
Predicate<T> predicate,
Supplier<T,T> supplier) |
static <T> T |
Objs.useValueIfNotMatch(T value,
Predicate<T> predicate,
T defaultValue) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <BEAN,CI extends Iterable<BEAN>,O> |
Beans.getFieldList(CI beans,
Predicate<BEAN> predicate,
Function<BEAN,O> fieldExtractor) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E,C extends Collection<E>> |
Collects.allMatch(C collection,
Predicate<E> predicate)
whether all elements match the specified condition or not
|
boolean |
Pipeline.allMatch(Predicate<E> predicate) |
static boolean |
Collects.allMatch(Predicate predicate,
Object... collection) |
static <E,C extends Collection<E>> |
Collects.anyMatch(C collection,
Predicate<E> predicate)
has any element match the specified condition
|
boolean |
Pipeline.anyMatch(Predicate<E> predicate) |
static boolean |
Collects.anyMatch(Predicate<Object> predicate,
Object... array) |
static <E> boolean |
Collects.contains(Collection<E> collection,
E obj,
Predicate<E> predicate) |
static <E> boolean |
Collects.contains(E[] collection,
E obj,
Predicate<E> predicate) |
static <E> Collection<E> |
Collects.filter(Object anyObject,
Predicate<E> predicate)
Filter any object with the specified predicate
|
static <E> Collection<E> |
Collects.filter(Object anyObject,
Predicate<E> consumePredicate,
Predicate<E> breakPredicate)
Filter any object with the specified predicate
|
static <E> Collection<E> |
Collects.filter(Object anyObject,
Predicate<E> consumePredicate,
Predicate<E> breakPredicate)
Filter any object with the specified predicate
|
Pipeline<E> |
Pipeline.filter(Predicate<E> predicate) |
Pipeline<E> |
Pipeline.filter(Predicate<E> predicate,
Predicate<E> breakPredicate) |
Pipeline<E> |
Pipeline.filter(Predicate<E> predicate,
Predicate<E> breakPredicate) |
static <E,C extends Collection<E>> |
Collects.findFirst(C collection,
Predicate<E> predicate)
find the first matched element, null if not found
|
E |
Pipeline.findFirst(Predicate<E> predicate) |
static <E,C extends Collection<E>> |
Collects.findN(C collection,
Predicate<E> predicate,
int n)
find the first matched element, null if not found
|
Pipeline<E> |
Pipeline.findN(Predicate<E> predicate,
int n) |
static <E,C extends Iterable<E>,O> |
Collects.firstMap(C collection,
Function2<Integer,E,O> mapper,
Predicate<O> breakPredicate)
map every element in the collection with the mapper,
break the traverse if the mapped result match the breakPredicate
return the mapped result
|
<O> O |
Pipeline.firstMap(Function2<Integer,E,O> mapper,
Predicate<O> breakPredicate) |
static <K,V,O> O |
Collects.firstMap(Map<K,V> map,
Function2<K,V,O> mapper,
Predicate<O> breakPredicate)
find the first matched element, null if not found
|
static <E,C extends Iterable<E>> |
Collects.forEach(C collection,
Consumer<E> consumer,
Predicate<E> breakPredicate) |
void |
Pipeline.forEach(Consumer<E> consumer,
Predicate<E> breakPredicate) |
static <E,C extends Iterable<E>> |
Collects.forEach(C collection,
Predicate<E> consumePredicate,
Consumer<E> consumer) |
static <E,C extends Iterable<E>> |
Collects.forEach(C collection,
Predicate<E> consumePredicate,
Consumer<E> consumer,
Predicate<E> breakPredicate)
Consume every element what matched the consumePredicate
|
static <E,C extends Iterable<E>> |
Collects.forEach(C collection,
Predicate<E> consumePredicate,
Consumer<E> consumer,
Predicate<E> breakPredicate)
Consume every element what matched the consumePredicate
|
static <E> void |
Collects.forEach(E[] array,
Predicate<E> consumePredicate,
Consumer<E> consumer,
Predicate<E> breakPredicate)
consume every element that matched the consumePredicate
|
static <E> void |
Collects.forEach(E[] array,
Predicate<E> consumePredicate,
Consumer<E> consumer,
Predicate<E> breakPredicate)
consume every element that matched the consumePredicate
|
void |
Pipeline.forEach(Predicate<E> consumePredicate,
Consumer<E> consumer) |
void |
Pipeline.forEach(Predicate<E> consumePredicate,
Consumer<E> consumer,
Predicate<E> breakPredicate) |
void |
Pipeline.forEach(Predicate<E> consumePredicate,
Consumer<E> consumer,
Predicate<E> breakPredicate) |
static <E,C extends Collection<E>> |
Collects.noneMatch(C collection,
Predicate<E> predicate)
has no any element match the specified condition ?
|
boolean |
Pipeline.noneMatch(Predicate<E> predicate) |
static boolean |
Collects.noneMatch(Predicate predicate,
Object... collection) |
static <E,C extends Collection<E>> |
Collects.removeIf(C collection,
Predicate<E> predicate)
remove all elements that match the condition
|
static <E> boolean |
Collects.removeIf(Iterator<E> iterator,
Predicate<E> predicate) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <T extends Enum<T>> |
Enums.ofField(Class<T> targetClass,
String field,
Object value,
Predicate<T> predicate) |
static <T extends Enum<T>> |
Enums.ofField(Class<T> targetClass,
String field,
Supplier0<Object> valueSupplier,
Predicate<T> predicate) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E> Predicate<E> |
Functions.allPredicate(List<Predicate<E>> predicates) |
static <E> Predicate<E> |
Functions.allPredicate(Predicate<E>... predicates) |
static <E> Predicate<E> |
Functions.andPredicate(Predicate<E>... predicates) |
static <E> Predicate<E> |
Functions.anyPredicate(List<Predicate<E>> predicates) |
static <E> Predicate<E> |
Functions.anyPredicate(Predicate<E>... predicates) |
static <E> Predicate<E> |
Functions.booleanPredicate(boolean value) |
static <E> Predicate<E> |
Functions.emptyPredicate() |
static <E> Predicate<E> |
Functions.equalsPredicate(E obj) |
static <E> Predicate<E> |
Functions.falsePredicate() |
static <E> Predicate<E> |
Functions.nonePredicate(List<Predicate<E>> predicates) |
static <E> Predicate<E> |
Functions.nonePredicate(Predicate<E>... predicates) |
static <E> Predicate<E> |
Functions.nonNullPredicate()
Predicate
|
static <E> Predicate<E> |
Functions.notEmptyPredicate() |
static <E> Predicate<E> |
Functions.nullPredicate() |
static <E> Predicate<E> |
Functions.orPredicate(Predicate<E>... predicates) |
static Predicate<String> |
Functions.stringContainsPredicate(String cantained) |
static Predicate<String> |
Functions.stringContainsPredicate(String cantained,
boolean ignoreCase) |
static <E> Predicate<E> |
Functions.truePredicate() |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E> Predicate<E> |
Functions.allPredicate(Predicate<E>... predicates) |
static <E> Predicate<E> |
Functions.andPredicate(Predicate<E>... predicates) |
static <E> Predicate<E> |
Functions.anyPredicate(Predicate<E>... predicates) |
static <E> Predicate<E> |
Functions.nonePredicate(Predicate<E>... predicates) |
static <E> Predicate<E> |
Functions.orPredicate(Predicate<E>... predicates) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E> Predicate<E> |
Functions.allPredicate(List<Predicate<E>> predicates) |
static <E> Predicate<E> |
Functions.anyPredicate(List<Predicate<E>> predicates) |
static <E> Predicate<E> |
Functions.nonePredicate(List<Predicate<E>> predicates) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
ComparisonExpectValuedPredicate<V> |
class |
ContainsPredicate<V> |
class |
EmptyPredicate<V> |
class |
EqualsExpectValuedPredicate<V> |
class |
ExpectValuedPredicate<V> |
class |
StringContainsAnyPredicate |
class |
StringContainsPredicate |
class |
StringEndsWithPredicate |
class |
StringEqualsPredicate |
class |
StringListContainsPredicate |
class |
StringPatternPredicate |
class |
StringStartsWithPredicate |
class |
SupplierPredicate<V> |
| 限定符和类型 | 类和说明 |
|---|---|
class |
FilterToPredicateAdapter<E> |
| 构造器和说明 |
|---|
PredicateToFilterAdapter(Predicate<E> predicate) |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
FileFilter |
| 限定符和类型 | 方法和说明 |
|---|---|
static FileFilter |
FileFilters.wrap(Predicate<File> filePredicate) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractFileFilter |
class |
AllFileFilter |
class |
AnyFileFilter |
class |
BooleanFileFilter |
class |
ExecutableFileFilter |
class |
ExistsFileFilter |
class |
FilenameEqualsFilter |
class |
FilenamePredicateFilter |
class |
FilenamePrefixFilter |
class |
FilenameSuffixFilter |
class |
IsDirectoryFileFilter |
class |
IsFileFilter |
class |
IsHiddenFileFilter |
class |
IsSymlinkFileFilter |
class |
ParentFilenameSuffixFilter |
class |
PatternFilenameFilter |
class |
ReadableFileFilter |
class |
ReadonlyFileFilter |
class |
ValidFilenameFilter |
class |
WriteableFileFilter |
| 限定符和类型 | 字段和说明 |
|---|---|
protected Predicate<String> |
FilenamePredicateFilter.predicate |
| 构造器和说明 |
|---|
FilenamePredicateFilter(Predicate<String> predicate) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
FilenameFilterToFileFilter |
class |
FilePredicateToFilterFilter |
class |
FilterToFileFilter |
class |
JdkFileFilterToFileFilter |
| 构造器和说明 |
|---|
FilePredicateToFilterFilter(Predicate<File> filePredicate) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,Set<InetAddress>> |
Nets.getNetworkInterfaceAddresses(Predicate<NetworkInterface> networkInterfacePredicate,
Predicate<InetAddress> inetAddressPredicate) |
static Map<String,Set<InetAddress>> |
Nets.getNetworkInterfaceAddresses(Predicate<NetworkInterface> networkInterfacePredicate,
Predicate<InetAddress> inetAddressPredicate) |
static List<NetworkInterface> |
Nets.getNetworkInterfaces(Predicate<NetworkInterface> predicate) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
CommonServiceProvider.setPredicate(Predicate<T> predicate) |
Copyright © 2022. All rights reserved.