| 程序包 | 说明 |
|---|---|
| com.jn.langx.util |
This package contain all most utility classes for java coding
|
| com.jn.langx.util.collection |
many collection utility class
|
| com.jn.langx.util.enums | |
| com.jn.langx.util.function | |
| com.jn.langx.util.io.file | |
| com.jn.langx.util.io.file.filter |
| 限定符和类型 | 方法和说明 |
|---|---|
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 <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) |
| 限定符和类型 | 类和说明 |
|---|---|
class |
IncludeExclude<ITEM>
Utility class to maintain a set of inclusions and exclusions.
|
class |
IncludeExcludeSet<T,P>
Utility class to maintain a set of inclusions and exclusions.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 <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 <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> predicate,
Predicate<E> breakPredicate)
Filter any object with the specified predicate
|
static <E> Collection<E> |
Collects.filter(Object anyObject,
Predicate<E> predicate,
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>> |
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 <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) |
| 构造器和说明 |
|---|
IncludeExclude(Set<ITEM> includeSet,
Predicate<ITEM> includePredicate,
Set<ITEM> excludeSet,
Predicate<ITEM> excludePredicate) |
IncludeExclude(Set<ITEM> includeSet,
Predicate<ITEM> includePredicate,
Set<ITEM> excludeSet,
Predicate<ITEM> excludePredicate) |
IncludeExcludeSet(Set<T> includeSet,
Predicate<P> includePredicate,
Set<T> excludeSet,
Predicate<P> excludePredicate)
Construct an IncludeExclude
|
IncludeExcludeSet(Set<T> includeSet,
Predicate<P> includePredicate,
Set<T> excludeSet,
Predicate<P> excludePredicate)
Construct an IncludeExclude
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T extends Enum<T>> |
Enums.ofField(Class<T> targetClass,
String field,
Object value,
Predicate<T> predicate) |
| 限定符和类型 | 方法和说明 |
|---|---|
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.booleanPredicate(boolean value) |
static <E> Predicate<E> |
Functions.falsePredicate() |
static <E> Predicate<E> |
Functions.nonNullPredicate()
Predicate
|
static <E> Predicate<E> |
Functions.nullPredicate() |
static <E> Predicate<E> |
Functions.orPredicate(Predicate<E>... predicates) |
static Predicate<String> |
Functions.stringContainsPredicate(String cantained) |
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.orPredicate(Predicate<E>... predicates) |
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
FileFilter |
| 限定符和类型 | 类和说明 |
|---|---|
class |
AbstractFileFilter |
class |
AllFileFilter |
class |
AnyFileFilter |
class |
ExecutableFileFilter |
class |
ExistsFileFilter |
class |
FilenamePrefixFilter |
class |
FilenameSuffixFilter |
class |
IsDirectoryFileFilter |
class |
IsFileFilter |
class |
IsHiddenFileFilter |
class |
IsSymlinkFileFilter |
class |
PatternFilenameFilter |
class |
ReadableFileFilter |
class |
ReadonlyFileFilter |
class |
ValidFilenameFilter |
class |
WriteableFileFilter |
Copyright © 2020. All rights reserved.