| 程序包 | 说明 |
|---|---|
| com.jn.langx | |
| com.jn.langx.io.resource | |
| com.jn.langx.text.properties | |
| 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.function | |
| com.jn.langx.util.io | |
| 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.http | |
| com.jn.langx.util.valuegetter |
| 限定符和类型 | 方法和说明 |
|---|---|
<E> E |
AbstractAccessor.getAny(Predicate2<K,E> predicate,
K... keys) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
Resources.readLines(String location,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
static void |
Resources.readLines(String location,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
static void |
Resources.readUsingDelimiter(Resource resource,
String delimiter,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
static void |
Resources.readUsingDelimiter(Resource resource,
String delimiter,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
static void |
Resources.readUsingDelimiter(String location,
String delimiter,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
static void |
Resources.readUsingDelimiter(String location,
String delimiter,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,String> |
Props.filter(Properties properties,
Predicate2<String,String> predicate) |
| 限定符和类型 | 方法和说明 |
|---|---|
<E extends CharSequence> |
StringJoiner.append(Collection<E> newElements,
Predicate2<Integer,E> predicate) |
static String |
Strings.join(String separator,
String prefix,
String suffix,
Iterator objects,
Function<Object,String> mapper,
Predicate2<Integer,String> predicate) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <K,V,M extends Map<? extends K,? extends V>> |
Collects.allMatch(M map,
Predicate2<K,V> predicate)
whether all elements match the specified condition or not
|
static <K,V,M extends Map<? extends K,? extends V>> |
Collects.anyMatch(M map,
Predicate2<K,V> predicate)
has any element match the specified condition
|
static <K,V> Map<K,V> |
Collects.filter(Map<K,V> map,
Predicate2<K,V> predicate)
Filter a map with the specified predicate
|
static <E> Collection<E> |
Collects.filter(Object anyObject,
Predicate2<Integer,E> consumePredicate,
Predicate2<Integer,E> breakPredicate)
Filter any object with the specified predicate
|
static <E> Collection<E> |
Collects.filter(Object anyObject,
Predicate2<Integer,E> consumePredicate,
Predicate2<Integer,E> breakPredicate)
Filter any object with the specified predicate
|
Pipeline<E> |
Pipeline.filter(Predicate2<Integer,E> predicate) |
Pipeline<E> |
Pipeline.filter(Predicate2<Integer,E> predicate,
Predicate2<Integer,E> breakPredicate) |
Pipeline<E> |
Pipeline.filter(Predicate2<Integer,E> predicate,
Predicate2<Integer,E> breakPredicate) |
static <K,V> Map.Entry<? extends K,? extends V> |
Collects.findFirst(Map<? extends K,? extends V> map,
Predicate2<K,V> predicate)
find the first matched element, null if not found
|
static <K,V> Map<? extends K,? extends V> |
Collects.findN(Map<? extends K,? extends V> map,
Predicate2<K,V> predicate,
int n)
find the first matched element, null if not found
|
static <E,C extends Collection<E>> |
Collects.findNPairs(C collection,
Predicate2<Integer,E> predicate,
int n)
find the first matched element, null if not found
|
static <E,C extends Iterable<E>,O> |
Collects.firstMap(C collection,
Function2<Integer,E,O> mapper,
Predicate2<E,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,
Predicate2<E,O> breakPredicate) |
static <E,C extends Collection<E>> |
Collects.firstOccurrence(C c,
Predicate2<Integer,E> predicate) |
static <E,C extends Iterable<E>> |
Collects.forEach(C collection,
Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate)
Iterate every element
|
void |
Pipeline.forEach(Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate) |
static <E,C extends Iterable<E>> |
Collects.forEach(C collection,
Predicate2<Integer,E> consumePredicate,
Consumer2<Integer,E> consumer)
Consume every element what matched the consumePredicate
|
static <E,C extends Iterable<E>> |
Collects.forEach(C collection,
Predicate2<Integer,E> consumePredicate,
Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate)
Consume every element what matched the consumePredicate
|
static <E,C extends Iterable<E>> |
Collects.forEach(C collection,
Predicate2<Integer,E> consumePredicate,
Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate)
Consume every element what matched the consumePredicate
|
static <E> void |
Collects.forEach(E[] array,
Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate)
Iterate every element
|
static <E> void |
Collects.forEach(E[] array,
Predicate2<Integer,E> consumePredicate,
Consumer2<Integer,E> consumer)
consume every element that matched the consumePredicate
|
static <E> void |
Collects.forEach(E[] array,
Predicate2<Integer,E> consumePredicate,
Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate)
consume every element that matched the consumePredicate
|
static <E> void |
Collects.forEach(E[] array,
Predicate2<Integer,E> consumePredicate,
Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate)
consume every element that matched the consumePredicate
|
static <K,V,M extends Map<? extends K,? extends V>> |
Collects.forEach(M map,
Consumer2<K,V> consumer,
Predicate2<K,V> breakPredicate)
Iterate every element
|
static <K,V,M extends Map<? extends K,? extends V>> |
Collects.forEach(M map,
Predicate2<K,V> consumePredicate,
Consumer2<K,V> consumer)
consume every element what matched the consumePredicate
|
static <K,V,M extends Map<? extends K,? extends V>> |
Collects.forEach(M map,
Predicate2<K,V> consumePredicate,
Consumer2<K,V> consumer,
Predicate2<K,V> breakPredicate)
consume every element what matched the consumePredicate
|
static <K,V,M extends Map<? extends K,? extends V>> |
Collects.forEach(M map,
Predicate2<K,V> consumePredicate,
Consumer2<K,V> consumer,
Predicate2<K,V> breakPredicate)
consume every element what matched the consumePredicate
|
void |
Pipeline.forEach(Predicate2<Integer,E> consumePredicate,
Consumer2<Integer,E> consumer) |
void |
Pipeline.forEach(Predicate2<Integer,E> consumePredicate,
Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate) |
void |
Pipeline.forEach(Predicate2<Integer,E> consumePredicate,
Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate) |
static <K,V,M extends Map<? extends K,? extends V>> |
Collects.noneMatch(M map,
Predicate2<K,V> predicate)
has no any element match the specified condition ?
|
static <K,V> boolean |
Collects.removeIf(Map<K,V> map,
Predicate2<K,V> predicate)
remove all elements that match the map
|
static <K,V> V |
Maps.replace(Map<K,V> map,
K key,
V value,
Predicate2<K,V> predicate) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <E1,E2> Predicate2<E1,E2> |
Functions.booleanPredicate2(boolean value) |
static <E1,E2> Predicate2<E1,E2> |
Functions.deepEqualsPredicate() |
static <E1,E2> Predicate2<E1,E2> |
Functions.equalsPredicate() |
static <E1,E2> Predicate2<E1,E2> |
Functions.falsePredicate2() |
static <E1,E2> Predicate2<E1,E2> |
Functions.nonNullPredicate2() |
static <E1,E2> Predicate2<E1,E2> |
Functions.nullPredicate2() |
static <E1,E2> Predicate2<E1,E2> |
Functions.truePredicate2() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
Channels.readLines(InputStream inputStream,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
static void |
Channels.readLines(InputStream inputStream,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
static void |
Channels.readLines(InputStream inputStream,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
static void |
Channels.readLines(InputStream inputStream,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
static void |
Channels.readLines(ReadableByteChannel channel,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
static void |
Channels.readLines(ReadableByteChannel channel,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate) |
static void |
Channels.readUsingDelimiter(InputStream inputStream,
String delimiter,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakConsumer) |
static void |
Channels.readUsingDelimiter(InputStream inputStream,
String delimiter,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakConsumer) |
static void |
Channels.readUsingDelimiter(InputStream inputStream,
String delimiter,
Predicate2<Integer,byte[]> consumePredicate,
Consumer2<Integer,byte[]> consumer,
Predicate2<Integer,byte[]> breakPredicate) |
static void |
Channels.readUsingDelimiter(InputStream inputStream,
String delimiter,
Predicate2<Integer,byte[]> consumePredicate,
Consumer2<Integer,byte[]> consumer,
Predicate2<Integer,byte[]> breakPredicate) |
static void |
Channels.readUsingDelimiter(ReadableByteChannel channel,
String delimiter,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate)
在消费之前,把 byte[] 转为 String
|
static void |
Channels.readUsingDelimiter(ReadableByteChannel channel,
String delimiter,
Charset charset,
Predicate2<Integer,String> consumePredicate,
Consumer2<Integer,String> consumer,
Predicate2<Integer,String> breakPredicate)
在消费之前,把 byte[] 转为 String
|
static void |
Channels.readUsingDelimiter(ReadableByteChannel channel,
String delimiter,
Predicate2<Integer,byte[]> consumePredicate,
Consumer2<Integer,byte[]> consumer,
Predicate2<Integer,byte[]> breakPredicate)
所有方法最终都是走这个
|
static void |
Channels.readUsingDelimiter(ReadableByteChannel channel,
String delimiter,
Predicate2<Integer,byte[]> consumePredicate,
Consumer2<Integer,byte[]> consumer,
Predicate2<Integer,byte[]> breakPredicate)
所有方法最终都是走这个
|
| 限定符和类型 | 接口和说明 |
|---|---|
interface |
FileFilter |
interface |
FilenameFilter
paramters:
1)File: the directory
2)String: the filename
|
| 限定符和类型 | 方法和说明 |
|---|---|
static List<File> |
Files.find(File directory,
FileFilter childrenFilter,
FileFilter filter,
Predicate2<List<File>,File> breakPredicate) |
static List<File> |
Files.find(File directory,
int maxDepth,
FileFilter childrenFilter,
FileFilter filter,
Predicate2<List<File>,File> breakPredicate) |
static void |
Files.find(File directory,
List<File> out,
int maxDepth,
FileFilter childrenFilter,
FileFilter filter,
Predicate2<List<File>,File> breakPredicate) |
| 限定符和类型 | 类和说明 |
|---|---|
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 |
| 限定符和类型 | 类和说明 |
|---|---|
class |
FilenameFilterToFileFilter |
class |
FilePredicateToFilterFilter |
class |
FilterToFileFilter |
class |
JdkFileFilterToFileFilter |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
HttpHeaders.getFirstHeader(Predicate2<String,String> predicate,
String... headerNames) |
| 限定符和类型 | 方法和说明 |
|---|---|
<E> E |
ValueGetter2.getAny(Predicate2<K,E> predicate,
K... keys) |
Copyright © 2022. All rights reserved.