| 限定符和类型 | 方法和说明 |
|---|---|
O |
Parser.parse(I input) |
| 限定符和类型 | 方法和说明 |
|---|---|
V |
Cache.get(K key,
Supplier<K,V> loader) |
V |
AbstractCache.get(K key,
Supplier<K,V> loader) |
protected void |
BaseCache.refreshAllAsync(Timeout timeout) |
protected void |
AbstractCache.refreshAllAsync(Timeout timeout) |
void |
Cache.set(K key,
V value)
set a key-value to cache, with out expire time never
|
void |
AbstractCache.set(K key,
V value) |
void |
Cache.set(K key,
V value,
long expireTime)
set a key-value to cache, with the specified expire time
|
void |
AbstractCache.set(K key,
V value,
long expire) |
void |
Cache.set(K key,
V value,
long ttl,
TimeUnit timeUnit)
set a key-value to cache, with the specified expire time
|
void |
AbstractCache.set(K key,
V value,
long duration,
TimeUnit timeUnit) |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
CommandLines.executeAndReadAsString(CommandLine commandLine,
File workDirectory,
Map<String,String> environment)
执行命令,并将输出内容以字符串的形式返回
|
static String |
CommandLines.executeAndReadAsString(CommandLine commandLine,
File workDirectory,
Map<String,String> environment)
执行命令,并将输出内容以字符串的形式返回
|
static List<String> |
CommandLines.executeAndReadLines(CommandLine commandLine,
File workDirectory,
Map<String,String> environment)
执行命令,并将输出内容以lines的形式返回
|
static List<String> |
CommandLines.executeAndReadLines(CommandLine commandLine,
File workDirectory,
Map<String,String> environment)
执行命令,并将输出内容以lines的形式返回
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected InputStream |
AbstractExecuteStreamHandler.subProcessErrorOutputStream
使用该 input,用于读取 子进程的错误输出
由于输出可以被重定向,所以该值有可能是 null
|
protected InputStream |
AbstractExecuteStreamHandler.subProcessOutputStream
使用该 input,用于读取 子进程的正常输出
由于输出可以被重定向,所以该值有可能是 null
|
| 限定符和类型 | 字段和说明 |
|---|---|
protected Writer |
AbstractConfigurationRepository.writer |
| 限定符和类型 | 方法和说明 |
|---|---|
NODE |
LoadBalanceStrategy.select(List<NODE> reachableNodes,
INVOCATION invocation) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Object |
SparseProxyFactory.newProxy(Object target,
MethodInterceptor interceptor,
Class[] interfaces) |
static Object |
SparseProxyFactory.newProxy(Object target,
MethodInterceptor interceptor,
Class[] interfaces) |
| 限定符和类型 | 方法和说明 |
|---|---|
ClassLoader |
ResourceLoader.getClassLoader()
Expose the ClassLoader used by this ResourceLoader.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ByteArrayResource |
Resources.asByteArrayResource(byte[] byteArray,
String description) |
static InputStreamResource |
Resources.asInputStreamResource(InputStream inputStream,
String description) |
static ClassPathResource |
Resources.loadClassPathResource(String location,
Class clazz) |
static ClassPathResource |
Resources.loadClassPathResource(String location,
ClassLoader classLoader) |
static FileResource |
Resources.loadFileResource(String location,
ClassLoader classLoader) |
static <V extends Resource> |
Resources.loadResource(String location,
ClassLoader classLoader) |
static UrlResource |
Resources.loadUrlResource(String location,
ClassLoader classLoader) |
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) |
| 构造器和说明 |
|---|
ByteArrayResource(byte[] byteArray,
String description)
Create a new
ByteArrayResource with a description. |
ClassPathResource(String path,
Class<?> clazz)
Create a new
ClassPathResource for Class usage. |
ClassPathResource(String path,
ClassLoader classLoader)
Create a new
ClassPathResource for ClassLoader usage. |
DefaultResourceLoader(ClassLoader classLoader)
Create a new DefaultResourceLoader.
|
InputStreamResource(InputStream inputStream,
String path)
Create a new InputStreamResource.
|
| 限定符和类型 | 方法和说明 |
|---|---|
Writer |
StringBuilderWriter.append(CharSequence value)
Appends a character sequence to this Writer.
|
Writer |
StringBuilderWriter.append(CharSequence value,
int start,
int end)
Appends a portion of a character sequence to the
StringBuilder. |
void |
NullOutputStream.write(byte[] b,
int off,
int len)
Does nothing - output to
/dev/null. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
CipherAlgorithmSuiteRegistry.add(String algorithm,
String transformation,
AlgorithmParameterSupplier supplier) |
static Cipher |
Ciphers.createCipher(String algorithmTransformation,
Provider provider,
int operateMode,
Certificate certificate,
SecureRandom secureRandom) |
static Cipher |
Ciphers.createCipher(String algorithmTransformation,
Provider provider,
int operateMode,
Key key,
AlgorithmParameterSpec parameterSpec,
SecureRandom secureRandom)
如果在初始化 Cipher过程中,出现了java.security.InvalidKeyException: Illegal key size
可以找到 ${JDK_HOME}/jre/lib/security/java.security, 将 crypto.policy 设置为 unlimited
|
static Cipher |
Ciphers.createCipher(String algorithmTransformation,
Provider provider,
int operateMode,
Key key,
AlgorithmParameterSpec parameterSpec,
SecureRandom secureRandom)
如果在初始化 Cipher过程中,出现了java.security.InvalidKeyException: Illegal key size
可以找到 ${JDK_HOME}/jre/lib/security/java.security, 将 crypto.policy 设置为 unlimited
|
static Cipher |
Ciphers.createCipher(String algorithmTransformation,
Provider provider,
int operateMode,
Key key,
AlgorithmParameters parameters,
SecureRandom secureRandom)
如果在初始化 Cipher过程中,出现了java.security.InvalidKeyException: Illegal key size
可以找到 ${JDK_HOME}/jre/lib/security/java.security, 将 crypto.policy 设置为 unlimited
|
static Cipher |
Ciphers.createCipher(String algorithmTransformation,
Provider provider,
int operateMode,
Key key,
AlgorithmParameters parameters,
SecureRandom secureRandom)
如果在初始化 Cipher过程中,出现了java.security.InvalidKeyException: Illegal key size
可以找到 ${JDK_HOME}/jre/lib/security/java.security, 将 crypto.policy 设置为 unlimited
|
static Cipher |
Ciphers.createCipher(String algorithmTransformation,
Provider provider,
int operateMode,
Key key,
SecureRandom secureRandom)
如果在初始化 Cipher过程中,出现了java.security.InvalidKeyException: Illegal key size
可以找到 ${JDK_HOME}/jre/lib/security/java.security, 将 crypto.policy 设置为 unlimited
|
static Cipher |
Ciphers.createEmptyCipher(String algorithmTransformation,
Provider provider) |
static byte[] |
Ciphers.decrypt(byte[] bytes,
byte[] keyBytes,
String algorithm,
String algorithmTransformation,
Provider provider,
SecureRandom secureRandom,
BytesBasedKeySupplier keySupplier,
AlgorithmParameters parameters) |
static byte[] |
Ciphers.decrypt(byte[] bytes,
byte[] keyBytes,
String algorithm,
String algorithmTransformation,
Provider provider,
SecureRandom secureRandom,
BytesBasedKeySupplier keySupplier,
AlgorithmParameterSpec parameterSpec) |
static byte[] |
Ciphers.decrypt(byte[] bytes,
byte[] keyBytes,
String algorithm,
String algorithmTransformation,
Provider provider,
SecureRandom secureRandom,
BytesBasedKeySupplier keySupplier,
AlgorithmParameterSupplier parameterSupplier) |
static byte[] |
Ciphers.doEncryptOrDecrypt(byte[] bytes,
byte[] keyBytes,
String algorithm,
String algorithmTransformation,
Provider provider,
SecureRandom secureRandom,
BytesBasedKeySupplier keySupplier,
AlgorithmParameterSpec parameterSpec,
boolean encrypt) |
static byte[] |
Ciphers.doEncryptOrDecrypt(byte[] bytes,
byte[] keyBytes,
String algorithm,
String algorithmTransformation,
Provider provider,
SecureRandom secureRandom,
BytesBasedKeySupplier keySupplier,
AlgorithmParameterSupplier parameterSupplier,
boolean encrypt) |
static byte[] |
Ciphers.encrypt(byte[] bytes,
byte[] keyBytes,
String algorithm,
String algorithmTransformation,
Provider provider,
SecureRandom secureRandom,
BytesBasedKeySupplier keySupplier,
AlgorithmParameters parameters) |
static byte[] |
Ciphers.encrypt(byte[] bytes,
byte[] keyBytes,
String algorithm,
String algorithmTransformation,
Provider provider,
SecureRandom secureRandom,
BytesBasedKeySupplier keySupplier,
AlgorithmParameterSpec parameterSpec) |
static byte[] |
Ciphers.encrypt(byte[] bytes,
byte[] keyBytes,
String algorithm,
String algorithmTransformation,
Provider provider,
SecureRandom secureRandom,
BytesBasedKeySupplier keySupplier,
AlgorithmParameterSupplier parameterSupplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
static List<byte[]> |
FileDigestGenerator.getFileDigest(String filePath,
FileDigestGenerator.FileReader reader,
List<MessageDigest> messageDigests) |
static List<byte[]> |
FileDigestGenerator.getFileDigest(String filePath,
FileDigestGenerator.FileReader reader,
MessageDigest... messageDigests) |
static List<byte[]> |
FileDigestGenerator.getFileDigest(String filePath,
FileDigestGenerator.FileReader reader,
String... algorithms) |
static String |
FileDigestGenerator.getFileDigest(String filePath,
String algorithm,
FileDigestGenerator.FileReader reader) |
static List<String> |
FileDigestGenerator.getFileDigestStrings(String filePath,
FileDigestGenerator.FileReader reader,
MessageDigest... messageDigests) |
static List<String> |
FileDigestGenerator.getFileDigestStrings(String filePath,
FileDigestGenerator.FileReader reader,
String... algorithms) |
| 构造器和说明 |
|---|
MessageDigestHasher(String algorithmName,
byte[] salt,
int hashIterations)
Creates an
algorithmName-specific hash of the specified source using the given
salt a total of hashIterations times. |
| 限定符和类型 | 方法和说明 |
|---|---|
static KeyPair |
PKIs.createKeyPair(String algorithm,
String provider,
AlgorithmParameterSpec parameterSpec,
SecureRandom secureRandom) |
static KeyPair |
PKIs.createKeyPair(String algorithm,
String provider,
AlgorithmParameterSpec parameterSpec,
SecureRandom secureRandom) |
static KeyPair |
PKIs.createKeyPair(String algorithm,
String provider,
byte[] base64PrivateKey,
byte[] base64PublicKey) |
static KeyPair |
PKIs.createKeyPair(String algorithm,
String provider,
int keySize,
SecureRandom secureRandom) |
static KeyPair |
PKIs.createKeyPair(String algorithm,
String provider,
int keySize,
SecureRandom secureRandom) |
static KeyPair |
PKIs.createKeyPair(String algorithm,
String provider,
KeySpec privateKeySpec,
KeySpec publicKeySpec) |
static KeyPair |
PKIs.createKeyPair(String algorithm,
String provider,
String base64PrivateKey,
String base64PublicKey) |
static PrivateKey |
PKIs.createPrivateKey(String algorithm,
String provider,
byte[] base64Pkcs8PrivateKey) |
static PrivateKey |
PKIs.createPrivateKey(String algorithm,
String provider,
byte[] pkcs8PrivateKey,
boolean base64ed) |
static PrivateKey |
PKIs.createPrivateKey(String algorithm,
String provider,
KeySpec keySpec) |
static PrivateKey |
PKIs.createPrivateKey(String algorithm,
String provider,
String base64Pkcs8PrivateKey) |
static PublicKey |
PKIs.createPublicKey(String algorithm,
String provider,
byte[] base64PublicKey) |
static PublicKey |
PKIs.createPublicKey(String algorithm,
String provider,
KeySpec keySpec) |
static PublicKey |
PKIs.createPublicKey(String algorithm,
String provider,
String base64PublicKey) |
static SecretKey |
PKIs.createSecretKey(String algorithm,
String provider,
AlgorithmParameterSpec parameterSpec,
SecureRandom secureRandom) |
static SecretKey |
PKIs.createSecretKey(String algorithm,
String provider,
AlgorithmParameterSpec parameterSpec,
SecureRandom secureRandom) |
static SecretKey |
PKIs.createSecretKey(String algorithm,
String provider,
AlgorithmParameterSpec parameterSpec,
SecureRandom secureRandom) |
static SecretKey |
PKIs.createSecretKey(String algorithm,
String provider,
Integer keySize,
SecureRandom secureRandom) |
static SecretKey |
PKIs.createSecretKey(String algorithm,
String provider,
Integer keySize,
SecureRandom secureRandom) |
static SecretKey |
PKIs.createSecretKey(String algorithm,
String provider,
Integer keySize,
SecureRandom secureRandom) |
static SecretKey |
PKIs.createSecretKey(String algorithm,
String provider,
KeySpec keySpec) |
static KeyFactory |
PKIs.getKeyFactory(String algorithm,
String provider) |
static KeyGenerator |
PKIs.getKeyGenerator(String algorithm,
String provider) |
static KeyPairGenerator |
PKIs.getKeyPairGenerator(String algorithm,
String provider) |
static SecretKeyFactory |
PKIs.getSecretKeyFactory(String algorithm,
String provider) |
static KeyGenerator |
PKIs.getSecretKeyGenerator(String algorithm,
String provider) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
PemFileIOs.writeKey(Key key,
File file,
KeyEncoding encoding,
String headerLine,
String footerLine) |
static void |
PemFileIOs.writeKey(Key key,
File file,
KeyEncoding encoding,
String headerLine,
String footerLine) |
static void |
PemFileIOs.writeKey(Key key,
OutputStream outputStream,
KeyEncoding encoding,
String headerLine,
String footerLine) |
static void |
PemFileIOs.writeKey(Key key,
OutputStream outputStream,
KeyEncoding encoding,
String headerLine,
String footerLine) |
| 限定符和类型 | 方法和说明 |
|---|---|
static KeyStore |
KeyStores.getEmptyKeyStore(String type,
String provider) |
static KeyStore |
KeyStores.getKeyStore(String type,
String provider,
File file,
char[] password) |
static KeyStore |
KeyStores.getKeyStore(String type,
String provider,
InputStream inputStream,
char[] password) |
| 限定符和类型 | 方法和说明 |
|---|---|
PrivateKey |
BytesBasedPrivateKeySupplier.get(byte[] bytes,
String algorithm,
Provider provider) |
O |
BytesBasedKeySupplier.get(byte[] bytes,
String algorithm,
Provider provider) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Signature |
Signatures.createSignature(String algorithm,
String provider) |
static Signature |
Signatures.createSignature(String algorithm,
String provider,
Certificate certificate) |
static Signature |
Signatures.createSignature(String algorithm,
String provider,
PrivateKey privateKey,
SecureRandom secureRandom) |
static Signature |
Signatures.createSignature(String algorithm,
String provider,
PrivateKey privateKey,
SecureRandom secureRandom) |
static Signature |
Signatures.createSignature(String algorithm,
String provider,
PrivateKey privateKey,
SecureRandom secureRandom,
AlgorithmParameterSpec cipherAlgoParameterSpec) |
static Signature |
Signatures.createSignature(String algorithm,
String provider,
PrivateKey privateKey,
SecureRandom secureRandom,
AlgorithmParameterSpec cipherAlgoParameterSpec) |
static Signature |
Signatures.createSignature(String algorithm,
String provider,
PrivateKey privateKey,
SecureRandom secureRandom,
AlgorithmParameterSupplier cipherAlgoParameterSupplier) |
static Signature |
Signatures.createSignature(String algorithm,
String provider,
PrivateKey privateKey,
SecureRandom secureRandom,
AlgorithmParameterSupplier cipherAlgoParameterSupplier) |
static Signature |
Signatures.createSignature(String algorithm,
String provider,
PublicKey publicKey) |
static Signature |
Signatures.createSignature(String algorithm,
String provider,
PublicKey publicKey,
AlgorithmParameterSupplier cipherAlgoParameterSupplier) |
static byte[] |
Signatures.sign(byte[] data,
byte[] privateKeyBytes,
String algorithm,
String provider,
SecureRandom secureRandom) |
static byte[] |
Signatures.sign(byte[] data,
byte[] privateKeyBytes,
String algorithm,
String provider,
SecureRandom secureRandom) |
static byte[] |
Signatures.sign(byte[] data,
byte[] privateKeyBytes,
String algorithm,
String provider,
SecureRandom secureRandom,
AlgorithmParameterSpec algorithmParameterSpec) |
static byte[] |
Signatures.sign(byte[] data,
byte[] privateKeyBytes,
String algorithm,
String provider,
SecureRandom secureRandom,
AlgorithmParameterSpec algorithmParameterSpec) |
static byte[] |
Signatures.sign(byte[] data,
byte[] privateKeyBytes,
String algorithm,
String provider,
SecureRandom secureRandom,
AlgorithmParameterSpec algorithmParameterSpec) |
static byte[] |
Signatures.sign(byte[] data,
byte[] privateKeyBytes,
String algorithm,
String provider,
SecureRandom secureRandom,
AlgorithmParameterSupplier cipherAlgoParameterSupplier) |
static byte[] |
Signatures.sign(byte[] data,
byte[] privateKeyBytes,
String algorithm,
String provider,
SecureRandom secureRandom,
AlgorithmParameterSupplier cipherAlgoParameterSupplier) |
static byte[] |
Signatures.sign(byte[] data,
byte[] privateKeyBytes,
String algorithm,
String provider,
SecureRandom secureRandom,
AlgorithmParameterSupplier cipherAlgoParameterSupplier) |
static byte[] |
Signatures.sign(byte[] data,
PrivateKey privateKey,
String algorithm,
String provider,
SecureRandom secureRandom,
AlgorithmParameterSupplier cipherAlgoParameterSupplier) |
static byte[] |
Signatures.sign(byte[] data,
PrivateKey privateKey,
String algorithm,
String provider,
SecureRandom secureRandom,
AlgorithmParameterSupplier cipherAlgoParameterSupplier) |
static byte[] |
Signatures.sign(byte[] data,
PrivateKey privateKey,
String algorithm,
String provider,
SecureRandom secureRandom,
AlgorithmParameterSupplier cipherAlgoParameterSupplier) |
static byte[] |
DSAs.sign(String signatureInstanceAlgorithm,
byte[] privateKey,
byte[] data) |
static byte[] |
DSAs.sign(String signatureInstanceAlgorithm,
Provider provider,
PrivateKey privateKey,
SecureRandom secureRandom,
byte[] data) |
static byte[] |
DSAs.sign(String signatureInstanceAlgorithm,
Provider provider,
PrivateKey privateKey,
SecureRandom secureRandom,
byte[] data) |
static byte[] |
DSAs.sign(String signatureInstanceAlgorithm,
Provider provider,
PrivateKey privateKey,
SecureRandom secureRandom,
byte[] data) |
static byte[] |
DSAs.sign(String signatureInstanceAlgorithm,
String provider,
byte[] privateKey,
SecureRandom secureRandom,
byte[] data) |
static byte[] |
DSAs.sign(String signatureInstanceAlgorithm,
String provider,
byte[] privateKey,
SecureRandom secureRandom,
byte[] data) |
static byte[] |
DSAs.sign(String signatureInstanceAlgorithm,
String provider,
byte[] privateKey,
SecureRandom secureRandom,
byte[] data) |
static byte[] |
Signatures.sign(String algorithm,
String provider,
PrivateKey privateKey,
SecureRandom secureRandom,
byte[] data)
已过时。
|
static byte[] |
Signatures.sign(String algorithm,
String provider,
PrivateKey privateKey,
SecureRandom secureRandom,
byte[] data)
已过时。
|
static byte[] |
DSAs.sign(String signatureInstanceAlgorithm,
String provider,
PrivateKey privateKey,
SecureRandom secureRandom,
byte[] data) |
static byte[] |
DSAs.sign(String signatureInstanceAlgorithm,
String provider,
PrivateKey privateKey,
SecureRandom secureRandom,
byte[] data) |
static byte[] |
DSAs.sign(String signatureInstanceAlgorithm,
String provider,
PrivateKey privateKey,
SecureRandom secureRandom,
byte[] data) |
static boolean |
Signatures.verify(byte[] data,
byte[] signature,
byte[] publicKeyBytes,
String algorithm,
String provider) |
static boolean |
Signatures.verify(byte[] data,
byte[] signature,
byte[] publicKeyBytes,
String algorithm,
String provider,
AlgorithmParameterSpec parameterSpec) |
static boolean |
Signatures.verify(byte[] data,
byte[] signature,
byte[] publicKeyBytes,
String algorithm,
String provider,
AlgorithmParameterSupplier parameterSupplier) |
static boolean |
Signatures.verify(byte[] data,
byte[] signature,
PublicKey publicKey,
String algorithm,
String provider,
AlgorithmParameterSupplier parameterSupplier) |
static boolean |
DSAs.verify(String signatureInstanceAlgorithm,
byte[] publicKey,
byte[] data,
byte[] signature) |
static boolean |
DSAs.verify(String signatureInstanceAlgorithm,
Provider provider,
PublicKey publicKey,
byte[] data,
byte[] signature) |
static boolean |
DSAs.verify(String signatureInstanceAlgorithm,
PublicKey publicKey,
byte[] data,
byte[] signature) |
static boolean |
DSAs.verify(String signatureInstanceAlgorithm,
String provider,
byte[] publicKey,
byte[] data,
byte[] signature) |
static boolean |
DSAs.verify(String signatureInstanceAlgorithm,
String provider,
byte[] publicKey,
byte[] data,
byte[] signature) |
static boolean |
Signatures.verify(String algorithm,
String provider,
PublicKey publicKey,
byte[] data,
byte[] signature) |
static boolean |
DSAs.verify(String signatureInstanceAlgorithm,
String provider,
PublicKey publicKey,
byte[] data,
byte[] signature) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Supplier<Object[],String> |
StringTemplates.mapStyleSupplier(String template,
MapBasedStringFormatter.PatternStyle patternStyle) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
I18nMessageStorage.getMessage(ClassLoader classLoader,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(ClassLoader classLoader,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(LanguageCode languageCode,
ClassLoader classLoader,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(LanguageCode languageCode,
ClassLoader classLoader,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(LanguageCode languageCode,
ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(LanguageCode languageCode,
ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(LanguageCode languageCode,
ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(LanguageCode languageCode,
ClassLoader classLoader,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(LanguageCode languageCode,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(LanguageCode languageCode,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(LanguageCode languageCode,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(LanguageCode languageCode,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(Locale locale,
ClassLoader classLoader,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(Locale locale,
ClassLoader classLoader,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(Locale locale,
ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(Locale locale,
ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(Locale locale,
ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(Locale locale,
ClassLoader classLoader,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(LocaleCode localeCode,
ClassLoader classLoader,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(LocaleCode localeCode,
ClassLoader classLoader,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(LocaleCode localeCode,
ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(LocaleCode localeCode,
ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(LocaleCode localeCode,
ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(LocaleCode localeCode,
ClassLoader classLoader,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(LocaleCode localeCode,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(LocaleCode localeCode,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(LocaleCode localeCode,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(LocaleCode localeCode,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(Locale locale,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(Locale locale,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(Locale locale,
String key,
Object... args) |
String |
AbstractI18nMessageStorage.getMessage(Locale locale,
String key,
Object... args) |
String |
AbstractResourceBundleI18nMessageStorage.getMessage(String basename,
Locale locale,
ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractResourceBundleI18nMessageStorage.getMessage(String basename,
Locale locale,
ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractResourceBundleI18nMessageStorage.getMessage(String basename,
Locale locale,
ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractResourceBundleI18nMessageStorage.getMessage(String basename,
Locale locale,
ClassLoader classLoader,
String key,
Object... args) |
String |
AbstractResourceBundleI18nMessageStorage.getMessage(String basename,
Locale locale,
String key,
Object... args) |
String |
AbstractResourceBundleI18nMessageStorage.getMessage(String basename,
Locale locale,
String key,
Object... args) |
String |
AbstractResourceBundleI18nMessageStorage.getMessage(String basename,
Locale locale,
String key,
Object... args) |
String |
I18nMessageStorage.getMessage(String key,
Object[] args) |
String |
AbstractI18nMessageStorage.getMessage(String key,
Object[] args) |
protected String |
SimpleResourceBundleI18nMessageStorage.getMessageInternal(String basename,
Locale locale,
ClassLoader classLoader,
String key,
Object... args) |
protected String |
SimpleResourceBundleI18nMessageStorage.getMessageInternal(String basename,
Locale locale,
ClassLoader classLoader,
String key,
Object... args) |
protected String |
SimpleResourceBundleI18nMessageStorage.getMessageInternal(String basename,
Locale locale,
ClassLoader classLoader,
String key,
Object... args) |
protected String |
JdkResourceBundleI18nMessageStorage.getMessageInternal(String basename,
Locale locale,
ClassLoader classLoader,
String key,
Object... args) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
IniPlaceholderHandler.parseStringValue(String value,
String defaultSection,
PlaceholderParser placeholderParser,
Set<String> visitedPlaceholders) |
| 构造器和说明 |
|---|
IniPlaceholderHandler(String placeholderPrefix,
String placeholderSuffix,
String valueSeparator,
boolean ignoreUnresolvablePlaceholders)
Creates a new
PropertyPlaceholderHelper that uses the supplied prefix and suffix. |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String |
PropertyPlaceholderHandler.parseStringValue(String template,
PlaceholderParser placeholderResolver,
Set<String> visitedPlaceholders) |
| 构造器和说明 |
|---|
PropertyPlaceholderHandler(String placeholderPrefix,
String placeholderSuffix,
String valueSeparator,
boolean ignoreUnresolvablePlaceholders)
Creates a new
PropertyPlaceholderHelper that uses the supplied prefix and suffix. |
| 限定符和类型 | 方法和说明 |
|---|---|
static Map<String,String> |
Props.toStringMap(Properties properties) |
static Map<String,String> |
Props.toStringMap(Properties properties,
boolean sort) |
static Map<String,String> |
Props.toStringMap(Properties properties,
Comparator<String> keyComparator) |
static Map<String,String> |
Props.toStringMap(Properties properties,
Comparator<String> keyComparator) |
| 构造器和说明 |
|---|
MapBasedStringFormatter(MapBasedStringFormatter.PatternStyle patternStyle) |
| 限定符和类型 | 方法和说明 |
|---|---|
T |
Equivalence.Wrapper.get()
Returns the (possibly null) reference wrapped by this instance.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> void |
Preconditions.checkArgument(boolean expression,
String errorMessage,
Object... params) |
static <T> T |
Preconditions.checkNotEmpty(T obj) |
static <T> T |
Preconditions.checkNotEmpty(T obj,
String errorMessage) |
static <T> T |
Preconditions.checkNotEmpty(T obj,
String errorMessage,
Object... params) |
static <T> T |
Preconditions.checkNotEmpty(T obj,
Supplier<Object[],String> errorMessageSupplier,
Object... params) |
static <T> T |
Preconditions.checkNotNull(T obj,
String errorMessage) |
static <T> T |
Preconditions.checkNotNull(T obj,
String errorMessage,
Object... params) |
static <T> T |
Preconditions.checkNotNull(T obj,
Supplier<Object[],String> errorMessageSupplier,
Object... params) |
static <T> void |
Preconditions.checkTrue(boolean expression,
String errorMessage,
Object... params) |
static <I,O> O |
ClassLoaders.doAction(ClassLoader threadContextClassLoader,
Function<I,O> action,
I input) |
boolean |
Equivalence.Wrapper.equals(Object obj)
Returns
true if Equivalence.equivalent(Object, Object) applied to the wrapped
references is true and both wrappers use the same
equivalence. |
boolean |
Equivalence.equivalent(T a,
T b)
Returns
true if the given objects are considered equivalent. |
boolean |
Equivalence.equivalent(T a,
T b)
Returns
true if the given objects are considered equivalent. |
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 SimpleDateFormat |
Dates.getSimpleDateFormat(String pattern,
Locale locale) |
static SimpleDateFormat |
Dates.getSimpleDateFormat(String pattern,
String timeZoneId) |
static SimpleDateFormat |
Dates.getSimpleDateFormat(String pattern,
String timeZoneId,
Locale locale) |
static SimpleDateFormat |
Dates.getSimpleDateFormat(String pattern,
String timeZoneId,
Locale locale) |
static SimpleDateFormat |
Dates.getSimpleDateFormat(String pattern,
TimeZone timeZone) |
static SimpleDateFormat |
Dates.getSimpleDateFormat(String pattern,
TimeZone timeZone,
Locale locale) |
static SimpleDateFormat |
Dates.getSimpleDateFormat(String pattern,
TimeZone timeZone,
Locale locale) |
static boolean |
ClassLoaders.hasClass(String classFQN,
ClassLoader classLoader) |
int |
Equivalence.hash(T t)
Returns a hash code for
t. |
static <I,O> O |
Throwables.ignoreExceptions(org.slf4j.Logger logger,
O valueIfError,
List<Class<Throwable>> throwables,
ThrowableFunction<I,O> func,
I arg)
执行指定的function,如果执行过程中,出现了指定的那些异常 throwables,则返回 valuesIfError,其他的异常则抛出。
|
static <I,O> O |
Throwables.ignoreExceptions(org.slf4j.Logger logger,
O valueIfError,
List<Class<Throwable>> throwables,
ThrowableFunction<I,O> func,
I arg)
执行指定的function,如果执行过程中,出现了指定的那些异常 throwables,则返回 valuesIfError,其他的异常则抛出。
|
static <I,O> O |
Throwables.ignoreExceptions(org.slf4j.Logger logger,
O valueIfError,
List<Class<Throwable>> throwables,
ThrowableFunction<I,O> func,
I arg)
执行指定的function,如果执行过程中,出现了指定的那些异常 throwables,则返回 valuesIfError,其他的异常则抛出。
|
static <I1,I2,O> O |
Throwables.ignoreExceptions(org.slf4j.Logger logger,
O valueIfError,
List<Class<Throwable>> throwables,
ThrowableFunction2<I1,I2,O> func,
I1 arg1,
I2 arg2)
执行指定的function,如果执行过程中,出现了指定的那些异常 throwables,则返回 valuesIfError,其他的异常则抛出。
|
static <I1,I2,O> O |
Throwables.ignoreExceptions(org.slf4j.Logger logger,
O valueIfError,
List<Class<Throwable>> throwables,
ThrowableFunction2<I1,I2,O> func,
I1 arg1,
I2 arg2)
执行指定的function,如果执行过程中,出现了指定的那些异常 throwables,则返回 valuesIfError,其他的异常则抛出。
|
static <I1,I2,O> O |
Throwables.ignoreExceptions(org.slf4j.Logger logger,
O valueIfError,
List<Class<Throwable>> throwables,
ThrowableFunction2<I1,I2,O> func,
I1 arg1,
I2 arg2)
执行指定的function,如果执行过程中,出现了指定的那些异常 throwables,则返回 valuesIfError,其他的异常则抛出。
|
static <I1,I2,O> O |
Throwables.ignoreExceptions(org.slf4j.Logger logger,
O valueIfError,
List<Class<Throwable>> throwables,
ThrowableFunction2<I1,I2,O> func,
I1 arg1,
I2 arg2)
执行指定的function,如果执行过程中,出现了指定的那些异常 throwables,则返回 valuesIfError,其他的异常则抛出。
|
static <I,O> O |
Throwables.ignoreThrowable(org.slf4j.Logger logger,
O valueIfError,
ThrowableFunction<I,O> func,
I arg)
当执行某个Function时,出现任何Exception,Error时,则返回默认值。
|
static <I,O> O |
Throwables.ignoreThrowable(org.slf4j.Logger logger,
O valueIfError,
ThrowableFunction<I,O> func,
I arg)
当执行某个Function时,出现任何Exception,Error时,则返回默认值。
|
static <I,O> O |
Throwables.ignoreThrowable(org.slf4j.Logger logger,
O valueIfError,
ThrowableFunction<I,O> func,
I arg)
当执行某个Function时,出现任何Exception,Error时,则返回默认值。
|
static <I1,I2,O> O |
Throwables.ignoreThrowable(org.slf4j.Logger logger,
O valueIfError,
ThrowableFunction2<I1,I2,O> func,
I1 arg1,
I2 arg2)
当执行某个Function时,出现任何Exception,Error时,则返回默认值。
|
static <I1,I2,O> O |
Throwables.ignoreThrowable(org.slf4j.Logger logger,
O valueIfError,
ThrowableFunction2<I1,I2,O> func,
I1 arg1,
I2 arg2)
当执行某个Function时,出现任何Exception,Error时,则返回默认值。
|
static <I1,I2,O> O |
Throwables.ignoreThrowable(org.slf4j.Logger logger,
O valueIfError,
ThrowableFunction2<I1,I2,O> func,
I1 arg1,
I2 arg2)
当执行某个Function时,出现任何Exception,Error时,则返回默认值。
|
static <I1,I2,O> O |
Throwables.ignoreThrowable(org.slf4j.Logger logger,
O valueIfError,
ThrowableFunction2<I1,I2,O> func,
I1 arg1,
I2 arg2)
当执行某个Function时,出现任何Exception,Error时,则返回默认值。
|
static String |
Strings.insert(String string,
List<Integer> slotIndexes,
String insertment) |
static String |
Strings.join(String separator,
Byte[] objects) |
static String |
Strings.join(String separator,
Character[] objects) |
static String |
Strings.join(String separator,
Double[] objects) |
static <E> String |
Strings.join(String separator,
E[] objects,
int startIndex) |
static <E> String |
Strings.join(String separator,
E[] objects,
int startIndex,
int length) |
static String |
Strings.join(String separator,
Float[] objects) |
static String |
Strings.join(String separator,
Integer[] objects) |
static String |
Strings.join(String separator,
Iterable objects) |
static String |
Strings.join(String separator,
Iterator objects)
append all objects with the specified separator
|
static String |
Strings.join(String separator,
Long[] objects) |
static String |
Strings.join(String separator,
Object[] objects) |
static String |
Strings.join(String separator,
Short[] objects) |
static String |
Strings.join(String separator,
String[] objects) |
static String |
Strings.join(String separator,
String prefix,
String suffix,
boolean filterNull,
Iterator objects) |
static String |
Strings.join(String separator,
String prefix,
String suffix,
boolean filterNull,
Iterator objects) |
static String |
Strings.join(String separator,
String prefix,
String suffix,
boolean filterNull,
Iterator objects) |
static String |
Strings.join(String separator,
String prefix,
String suffix,
Iterator objects,
Function<Object,String> mapper,
Predicate2<Integer,String> predicate) |
static String |
Strings.join(String separator,
String prefix,
String suffix,
Iterator objects,
Function<Object,String> mapper,
Predicate2<Integer,String> predicate) |
static String |
Strings.join(String separator,
String prefix,
String suffix,
Iterator objects,
Function<Object,String> mapper,
Predicate2<Integer,String> predicate) |
static Class |
ClassLoaders.loadClass(String className,
Class basedClass) |
static Class |
ClassLoaders.loadClass(String className,
ClassLoader classLoader) |
static Class |
ClassLoaders.loadImplClass(String className,
ClassLoader classLoader,
Class superClass) |
static void |
Throwables.log(org.slf4j.Logger logger,
Level level,
String message,
Throwable ex)
把异常记录到日志中
|
static void |
Throwables.log(org.slf4j.Logger logger,
Level level,
String message,
Throwable ex)
把异常记录到日志中
|
static void |
Throwables.log(org.slf4j.Logger logger,
Level level,
String message,
Throwable ex)
把异常记录到日志中
|
static <T extends Number> |
Numbers.parseNumber(String text,
Class<T> targetClass,
NumberFormat numberFormat)
Parse the given
text into a Number instance of the
given target class, using the supplied NumberFormat. |
static String[] |
Strings.split(String string,
String separator)
split a string, the returned array is not contains: whitespace, null.
|
static String[] |
Strings.split(String string,
String separator)
split a string, the returned array is not contains: whitespace, null.
|
static String[] |
Strings.split(String string,
String separator,
boolean doTrim)
split a string, the returned array is not contains: whitespace, null.
|
static String[] |
Strings.split(String string,
String separator,
boolean doTrim)
split a string, the returned array is not contains: whitespace, null.
|
static String[] |
Strings.split(String string,
String separator,
boolean doTrim,
boolean ignoreEmptyTokens)
split a string, the returned array is not contains: whitespace, null.
|
static String[] |
Strings.split(String string,
String separator,
boolean doTrim,
boolean ignoreEmptyTokens)
split a string, the returned array is not contains: whitespace, null.
|
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) |
<S extends T> |
Equivalence.wrap(S reference)
Returns a wrapper of
reference that implements
Object.equals() such that
wrap(a).equals(wrap(b)) if and only if equivalent(a, b). |
| 限定符和类型 | 方法和说明 |
|---|---|
V |
LinkedCaseInsensitiveMap.get(Object key) |
V |
LinkedCaseInsensitiveMap.getOrDefault(Object key,
V defaultValue) |
V |
LinkedCaseInsensitiveMap.put(String key,
V value) |
V |
LinkedCaseInsensitiveMap.putIfAbsent(String key,
V value) |
V |
LinkedCaseInsensitiveMap.remove(Object key) |
V |
LinkedCaseInsensitiveMap.supplyIfAbsent(String key,
Supplier<? super String,? extends V> supplier) |
| 限定符和类型 | 方法和说明 |
|---|---|
<C extends Collection<E>> |
Pipeline.addAll(C collection) |
static <E,C extends Collection<E>> |
Collects.addAll(C dest,
E... iterator) |
static <E,C extends Collection<E>> |
Collects.addAll(C dest,
Iterable<E> iterable) |
static <E,C extends Collection<E>> |
Collects.addAll(C dest,
Iterator<E> iterator) |
static <E,C extends Collection<E>> |
Collects.addTo(C srcCollection,
C targetCollection) |
static <E,C extends Collection<E>> |
Collects.allMatch(C collection,
Predicate<E> predicate)
whether all elements match the specified condition or not
|
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 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
|
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 <E,C extends Collection<E>> |
Collects.asArray(C list,
Class<E> componentClass) |
static <E> Collection<E> |
Collects.asCollection(Iterable<E> iterable) |
static <E> Iterable<E> |
Collects.asIterable(Object object)
Convert any object to an immutable Iterable
|
static <E> Iterable<E> |
Collects.asIterable(Object object,
boolean mutable)
Convert any object to Iterable
|
static <E> List<E> |
Collects.asList(E... array)
Convert an array to a ArrayList
|
static <E> List<E> |
Collects.asList(E[] array,
boolean mutable,
Collects.ListType listType)
Convert an array to a List, if the 'mutable' argument is true, will return an unmodifiable List
|
static <E> List<E> |
Collects.asList(E[] array,
boolean mutable,
Collects.ListType listType)
Convert an array to a List, if the 'mutable' argument is true, will return an unmodifiable List
|
static <E> List<E> |
Collects.asList(E[] array,
Collects.ListType listType)
Convert an array to a ArrayList or a LinkedList
|
static <E> List<E> |
Collects.asList(E[] array,
Collects.ListType listType)
Convert an array to a ArrayList or a LinkedList
|
static <E> List<E> |
Collects.asList(Iterable<E> iterable) |
static <E> List<E> |
Collects.asList(Iterable<E> iterable,
boolean mutable) |
static <E> Set<E> |
Collects.asSet(E... array)
Convert an array to a ArrayList
|
static <E> Set<E> |
Collects.asSet(E[] array,
boolean mutable,
Collects.SetType setType)
Convert an array to a List, if the 'mutable' argument is true, will return an unmodifiable List
|
static <E> Set<E> |
Collects.asSet(E[] array,
boolean mutable,
Collects.SetType setType)
Convert an array to a List, if the 'mutable' argument is true, will return an unmodifiable List
|
static <E> Set<E> |
Collects.asSet(E[] array,
Collects.SetType setType)
Convert an array to a ArrayList or a LinkedList
|
static <E> Set<E> |
Collects.asSet(E[] array,
Collects.SetType setType)
Convert an array to a ArrayList or a LinkedList
|
static <E> Set<E> |
Collects.asSet(Iterable<E> iterable) |
static <E> Set<E> |
Collects.asSet(Iterable<E> iterable,
boolean mutable) |
static <E,C extends Collection<E>> |
Collects.clearNulls(C collection) |
static <E> Collection<E> |
Collects.collect(Object anyObject,
Collection<E> container) |
static <E,R> R |
Collects.collect(Object anyObject,
Collector<E,R> collector) |
static <E,R> R |
Collects.collect(Object anyObject,
Supplier0<R> containerFactory,
Consumer2<R,E> consumer) |
static <E,C extends Collection<E>> |
Collects.concat(C c1,
C c2)
Concat two collection to one
|
static <E,C extends Collection<E>> |
Collects.concat(C c1,
C c2)
Concat two collection to one
|
static <E,C extends Collection<E>> |
Collects.concat(C c1,
C c2,
boolean newOne)
Concat two collection to one
|
static <E,C extends Collection<E>> |
Collects.concat(C c1,
C c2,
boolean newOne)
Concat two collection to one
|
static <E> boolean |
Collects.contains(Collection<E> collection,
E obj,
Predicate<E> predicate) |
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> boolean |
Collects.contains(E[] collection,
E obj,
Predicate<E> predicate) |
static <E,C extends Collection<E>> |
Collects.count(C collection) |
static <K,V> int |
Collects.count(Map<K,V> map) |
static int |
Collects.count(Object anyObject) |
static <E> E[] |
Arrs.createArray(Class<E> componentType,
int length)
Create an array with the specified length.
|
static <E> E[] |
Arrs.createArray(Class<E> componentType,
int length,
E initValue)
Create an array with the specified length and every element's value is the specified initValue
|
static <E> E[] |
Arrs.createArray(Class<E> componentType,
int length,
E initValue)
Create an array with the specified length and every element's value is the specified initValue
|
static <E> E[] |
Arrs.createArray(Class<E> componentType,
int length,
Supplier<Integer,E> initSupplier)
Create an array with the specified length and every element's value is supplied by the specified initSupplier
|
static <E,C extends Collection<E>> |
Collects.diff(C oldCollection,
C newCollection) |
static <E,C extends Collection<E>> |
Collects.diff(C oldCollection,
C newCollection) |
static <E,C extends Collection<E>> |
Collects.diff(C oldCollection,
C newCollection,
Comparator<E> elementComparator) |
static <E,C extends Collection<E>> |
Collects.diff(C oldCollection,
C newCollection,
Comparator<E> elementComparator) |
static <E,C extends Collection<E>> |
Collects.diff(C oldCollection,
C newCollection,
Comparator<E> elementComparator) |
static <E,C extends Collection<E>> |
Collects.diff(C oldCollection,
C newCollection,
Comparator<E> elementComparator,
KeyBuilder<String,E> keyBuilder) |
static <E,C extends Collection<E>> |
Collects.diff(C oldCollection,
C newCollection,
Comparator<E> elementComparator,
KeyBuilder<String,E> keyBuilder) |
static <E,C extends Collection<E>> |
Collects.diff(C oldCollection,
C newCollection,
Comparator<E> elementComparator,
KeyBuilder<String,E> keyBuilder) |
static <E,C extends Collection<E>> |
Collects.diff(C oldCollection,
C newCollection,
Comparator<E> elementComparator,
KeyBuilder<String,E> keyBuilder) |
static <K,V,M extends Map<K,V>> |
Collects.diff(M oldMap,
M newMap) |
static <K,V,M extends Map<K,V>> |
Collects.diff(M oldMap,
M newMap) |
static <K,V,M extends Map<K,V>> |
Collects.diff(M oldMap,
M newMap,
Comparator<V> valueComparator) |
static <K,V,M extends Map<K,V>> |
Collects.diff(M oldMap,
M newMap,
Comparator<V> valueComparator) |
static <K,V,M extends Map<K,V>> |
Collects.diff(M oldMap,
M newMap,
Comparator<V> valueComparator) |
static <K,V,M extends Map<K,V>> |
Collects.diff(M oldMap,
M newMap,
Comparator<V> valueComparator,
Comparator<K> keyComparator) |
static <K,V,M extends Map<K,V>> |
Collects.diff(M oldMap,
M newMap,
Comparator<V> valueComparator,
Comparator<K> keyComparator) |
static <K,V,M extends Map<K,V>> |
Collects.diff(M oldMap,
M newMap,
Comparator<V> valueComparator,
Comparator<K> keyComparator) |
static <K,V,M extends Map<K,V>> |
Collects.diff(M oldMap,
M newMap,
Comparator<V> valueComparator,
Comparator<K> keyComparator) |
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) |
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 <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,C extends Collection<E>> |
Collects.distinct(C collection) |
static <E> E[] |
Collects.emptyArray(Class<E> componentType) |
static <K,V> TreeMap<K,V> |
Collects.emptyTreeMap(Comparator<K> comparator)
Get a empty, mutable java.util.TreeMap
|
static <E> TreeSet<E> |
Collects.emptyTreeSet(Comparator<E> comparator) |
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,
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
|
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,
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
|
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(Predicate<E> predicate,
Predicate<E> breakPredicate) |
Pipeline<E> |
Pipeline.filter(Predicate2<Integer,E> predicate,
Predicate2<Integer,E> breakPredicate) |
static <E,C extends Collection<E>> |
Collects.findFirst(C collection)
find the first matched element, null if not found
|
static <E,C extends Collection<E>> |
Collects.findFirst(C collection,
Predicate<E> predicate)
find the first matched element, null if not found
|
static <E,C extends Collection<E>> |
Collects.findFirst(C collection,
Predicate<E> predicate)
find the first matched element, null if not found
|
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.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 <E,C extends Collection<E>> |
Collects.findN(C collection,
Predicate<E> predicate,
int n)
find the first matched element, null if not found
|
static <E,C extends Collection<E>> |
Collects.findN(C collection,
Predicate<E> predicate,
int n)
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 <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 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)
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,
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
|
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
|
static <K,V,O> O |
Collects.firstMap(Map<K,V> map,
Function2<K,V,O> mapper)
find the first matched element, null if not found
|
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,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
|
static <E,C extends Iterable<E>> |
Collects.forEach(C collection,
Consumer<E> consumer) |
static <E,C extends Iterable<E>> |
Collects.forEach(C collection,
Consumer<E> consumer,
Predicate<E> breakPredicate) |
static <E,C extends Iterable<E>> |
Collects.forEach(C collection,
Consumer<E> consumer,
Predicate<E> breakPredicate) |
static <E,C extends Iterable<E>> |
Collects.forEach(C collection,
Consumer2<Integer,E> consumer)
Iterate every element
|
static <E,C extends Collection<E>> |
Collects.forEach(C collection,
Consumer2<Integer,E> consumer) |
static <E,C extends Iterable<E>> |
Collects.forEach(C collection,
Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate)
Iterate every element
|
static <E,C extends Iterable<E>> |
Collects.forEach(C collection,
Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate)
Iterate every element
|
void |
Pipeline.forEach(Consumer<E> consumer,
Predicate<E> breakPredicate) |
void |
Pipeline.forEach(Consumer2<Integer,E> consumer,
Predicate2<Integer,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) |
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,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,
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)
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,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,
Consumer<E> consumer) |
static <E> void |
Collects.forEach(E[] array,
Consumer2<Integer,E> consumer)
Iterate every element
|
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,
Consumer2<Integer,E> consumer,
Predicate2<Integer,E> breakPredicate)
Iterate every element
|
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
|
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,
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)
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 <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)
Iterate every element
|
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,
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)
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
|
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(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) |
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 <E> List<E> |
Collects.getEmptyListIfNull(List<E> list)
Avoid NPE, create an empty, new list when the specified list is null
|
static <E> List<E> |
Collects.getEmptyListIfNull(List<E> list,
Collects.ListType listType) |
static <E> List<E> |
Collects.getEmptyListIfNull(List<E> list,
Collects.ListType listType) |
static <K,V> Map<K,V> |
Collects.getEmptyMapIfNull(Map<K,V> map)
Create an empty map when the specified map is null.
|
static <K,V> Map<K,V> |
Collects.getEmptyMapIfNull(Map<K,V> map,
Collects.MapType mapType) |
static <K,V> Map<K,V> |
Collects.getEmptyMapIfNull(Map<K,V> map,
Collects.MapType mapType) |
static <E> Set<E> |
Collects.getEmptySetIfNull(Set<E> set)
Avoid NPE, create an empty, new set when the specified set is null
|
static <E> Set<E> |
Collects.getEmptySetIfNull(Set<E> set,
Collects.SetType setType) |
static <E> Set<E> |
Collects.getEmptySetIfNull(Set<E> set,
Collects.SetType setType) |
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) |
static <K,E> Map<K,List<E>> |
Collects.groupBy(E[] iterable,
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 <K,E,C extends Collection<E>> |
Collects.groupBy(Iterable<E> iterable,
Function<E,K> classifier,
Supplier0<Map<K,List<E>>> mapFactory) |
static <E> void |
Arrs.initArray(E[] array,
E initValue) |
static boolean |
Arrs.isArray(Object o)
judge whether an object is an Array
|
static <E> boolean |
Collects.isFirst(E obj,
Iterable<E> list) |
static <E> boolean |
Collects.isFirst(E obj,
Iterable<E> list) |
static <E> boolean |
Collects.isFirst(E obj,
List<E> list) |
static <E> boolean |
Collects.isFirst(E obj,
List<E> list) |
static <E> boolean |
Collects.isFirst(E obj,
SortedSet<E> set) |
static <E> boolean |
Collects.isFirst(E obj,
SortedSet<E> set) |
static <E> boolean |
Collects.isLast(E obj,
Iterable<E> list) |
static <E> boolean |
Collects.isLast(E obj,
Iterable<E> list) |
static <E> boolean |
Collects.isLast(E obj,
List<E> list) |
static <E> boolean |
Collects.isLast(E obj,
List<E> list) |
static <E> boolean |
Collects.isLast(E obj,
SortedSet<E> set) |
static <E> boolean |
Collects.isLast(E obj,
SortedSet<E> set) |
static <E,C extends Collection<E>> |
Collects.limit(C collection,
int maxSize)
truncate a collection using subList(0, maxSize)
|
static <K,V,R,M extends Map<K,V>> |
Collects.map(M map,
Function2<K,V,R> mapper)
mapping aMap to a list
|
static <K,V,K1,V1,M extends Map<K,V>> |
Collects.map(M map,
Mapper2<K,V,Pair<K1,V1>> mapper)
mapping aMap to bMap
|
static <E,R> Collection<R> |
Collects.map(Object anyObject,
Function<E,R> mapper)
mapping an iterable to a list
|
static <E,K,V,M extends Map<K,V>> |
Collects.map(Object anyObject,
Mapper<E,Pair<K,V>> mapper)
mapping an iterable to a map
|
static <E,C extends Collection<E>> |
Collects.merge(C c1,
C c2) |
static <E,C extends Collection<E>> |
Collects.merge(C c1,
C c2) |
static <E,C extends Collection<E>> |
Collects.merge(C c1,
C c2,
boolean newOne) |
static <E,C extends Collection<E>> |
Collects.merge(C c1,
C c2,
boolean newOne) |
static <K,V,M extends Map<K,V>> |
Collects.merge(M map1,
M map2) |
static <K,V,M extends Map<K,V>> |
Collects.merge(M map1,
M map2) |
static <K,V,M extends Map<K,V>> |
Collects.merge(M map1,
M map2,
boolean newOne) |
static <K,V,M extends Map<K,V>> |
Collects.merge(M map1,
M map2,
boolean newOne) |
static <E> E |
Collects.min(Object object,
Comparator<E> comparator) |
static <E> ArrayList<E> |
Collects.newArrayList(E... elements) |
static <E> ArrayList<E> |
Collects.newArrayList(Iterable<E> elements) |
static <K,V> HashMap<K,V> |
Collects.newHashMap(Map<K,V> map) |
static <E> HashSet<E> |
Collects.newHashSet(E... elements) |
static <E> HashSet<E> |
Collects.newHashSet(Iterable<E> elements) |
static <E> LinkedHashSet<E> |
Collects.newLinkedHashSet(E... elements) |
static <E> LinkedHashSet<E> |
Collects.newLinkedHashSet(Iterable<E> elements) |
static <E> LinkedList<E> |
Collects.newLinkedList(E... elements) |
static <E> LinkedList<E> |
Collects.newLinkedList(Iterable<E> elements) |
static <E> TreeSet<E> |
Collects.newTreeSet(E... elements) |
static <E> TreeSet<E> |
Collects.newTreeSet(Iterable<E> elements) |
static <E,C extends Collection<E>> |
Collects.noneMatch(C collection,
Predicate<E> predicate)
has no any element match the specified condition ?
|
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 boolean |
Collects.noneMatch(Predicate predicate,
Object... collection) |
static <T> Pipeline<T> |
Pipeline.of(Iterable<T> iterable) |
static <T> Pipeline<T> |
Pipeline.of(Object anyObject) |
static <T> Pipeline<T> |
Pipeline.of(T... array) |
static Collects.ListType |
Collects.ListType.ofList(List list) |
static Collects.MapType |
Collects.MapType.ofMap(Map map) |
static Collects.SetType |
Collects.SetType.ofSet(Set set) |
static Map<String,String> |
Collects.propertiesToStringMap(Properties properties) |
static Map<String,String> |
Collects.propertiesToStringMap(Properties properties,
boolean sort) |
static Map<String,String> |
Collects.propertiesToStringMap(Properties properties,
Comparator<String> keyComparator) |
static Map<String,String> |
Collects.propertiesToStringMap(Properties properties,
Comparator<String> keyComparator) |
V |
LinkedCaseInsensitiveMap.put(String key,
V value) |
V |
LinkedCaseInsensitiveMap.putIfAbsent(String key,
V value) |
static <E> E |
Collects.reduce(E[] iterable,
Operator2<E> operator) |
static <E,C extends Iterable<E>> |
Collects.reduce(Iterable<E> iterable,
Operator2<E> operator) |
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 <K,V> boolean |
Collects.removeIf(Map<K,V> map,
Predicate2<K,V> predicate)
remove all elements that match the map
|
static <E> List<E> |
Collects.reverse(List<E> list) |
static <E> List<E> |
Collects.reverse(List<E> list,
boolean newOne)
Reverse a list, return an new list when the argument 'newOne' is true
|
static <E,C extends Collection<E>> |
Collects.skip(C collection,
int n)
skip n elements, get a collection using subList(n, size)
|
static <E> E[] |
Collects.skip(E[] array,
int n) |
static <E extends Comparable<E>,C extends Collection<E>> |
Collects.sort(C collection,
boolean reverse)
sort a collection, return an new list. it is different to
Collections.sort(list) is that : Collections.sort() return void
|
static <E,C extends Collection<E>> |
Collects.sort(C collection,
Comparator<E> comparator)
sort a collection, return an new list. it is different to
Collections.sort(list) is that : Collections.sort() return void
|
static <E,C extends Collection<E>> |
Collects.sort(C collection,
Comparator<E> comparator,
boolean reverse)
sort a collection, return an new list. it is different to
Collections.sort(list) is that : Collections.sort() return void
|
static <K,V,M extends Map<K,V>> |
Collects.sort(M map,
Comparator<K> comparator)
sort a collection, return an new list. it is different to
Collections.sort(list) is that : Collections.sort() return void
|
static <E,C extends Collection<E>> |
Collects.toArray(C collection) |
static <E,C extends Collection<E>> |
Collects.toArray(C list,
Class<E[]> clazz)
Convert a list to an array
|
static <E,C extends Collection<E>> |
Collects.toArray(C list,
Class<E[]> clazz)
Convert a list to an array
|
static <E,K,V> Collector<E,Map<K,V>> |
Collects.toTreeMap(Function<E,K> keyMapper,
Function<E,V> valueMapper,
Comparator<K> comparator) |
static <E> Collector<E,TreeSet<E>> |
Collects.toTreeSet(Comparator<E> comparator)
Collector Factory:
|
static boolean[] |
PrimitiveArrays.unwrap(Boolean[] values,
boolean resultNullable)
convert a Boolean[] to a boolean[]
|
static byte[] |
PrimitiveArrays.unwrap(Byte[] values,
boolean resultNullable)
convert a Byte[] to a byte[]
|
static char[] |
PrimitiveArrays.unwrap(Character[] values,
boolean resultNullable)
convert a Character[] to a char[]
|
static double[] |
PrimitiveArrays.unwrap(Double[] values,
boolean resultNullable)
convert a Double[] to a double[]
|
static float[] |
PrimitiveArrays.unwrap(Float[] values,
boolean resultNullable)
convert a Float[] to a float[]
|
static int[] |
PrimitiveArrays.unwrap(Integer[] values,
boolean resultNullable)
convert a Integer[] to a int[]
|
static long[] |
PrimitiveArrays.unwrap(Long[] values,
boolean resultNullable)
convert a Long[] to a long[]
|
static short[] |
PrimitiveArrays.unwrap(Short[] values,
boolean resultNullable)
convert a Short[] to a short[]
|
static Boolean[] |
PrimitiveArrays.wrap(boolean[] values,
boolean resultNullable)
convert a boolean[] to a Boolean[]
|
static Byte[] |
PrimitiveArrays.wrap(byte[] values,
boolean resultNullable)
convert a byte[] to a Byte[]
|
static Character[] |
PrimitiveArrays.wrap(char[] values,
boolean resultNullable)
convert a char[] to a Character[]
|
static Double[] |
PrimitiveArrays.wrap(double[] values,
boolean resultNullable)
convert a double[] to a Double[]
|
static Float[] |
PrimitiveArrays.wrap(float[] values,
boolean resultNullable)
convert a float[] to a Float[]
|
static Integer[] |
PrimitiveArrays.wrap(int[] values,
boolean resultNullable)
convert a int[] to a Integer[]
|
static Long[] |
PrimitiveArrays.wrap(long[] values,
boolean resultNullable)
convert a long[] to a Long[]
|
static Short[] |
PrimitiveArrays.wrap(short[] values,
boolean resultNullable)
convert a short[] to a Short[]
|
static <E> E[] |
Arrs.wrapAsArray(E o)
Wrap any object using new Object[]{object};
|
| 构造器和说明 |
|---|
LinkedCaseInsensitiveMap(int initialCapacity,
Locale locale)
Create a new LinkedCaseInsensitiveMap that wraps a
LinkedHashMap
with the given initial capacity and stores case-insensitive keys
according to the given Locale (by default in lower case). |
LinkedCaseInsensitiveMap(Locale locale)
Create a new LinkedCaseInsensitiveMap that stores case-insensitive keys
according to the given Locale (by default in lower case).
|
| 限定符和类型 | 方法和说明 |
|---|---|
abstract BF |
ReadWriteBuffer.put(E e) |
ArrayBuffer<E> |
ArrayBuffer.put(E e) |
abstract BF |
ReadWriteBuffer.put(long index,
E e) |
ArrayBuffer<E> |
ArrayBuffer.put(long index,
E e) |
| 限定符和类型 | 方法和说明 |
|---|---|
CollectionDiffResult<E> |
CollectionDiffer.diff(Collection<E> oldCollection,
Collection<E> newCollection) |
CollectionDiffResult<E> |
CollectionDiffer.diff(Collection<E> oldCollection,
Collection<E> newCollection) |
MapDiffResult<K,V> |
MapDiffer.diff(Map<K,V> oldMap,
Map<K,V> newMap) |
MapDiffResult<K,V> |
MapDiffer.diff(Map<K,V> oldMap,
Map<K,V> newMap) |
void |
CollectionDiffer.diffUsingMap(KeyBuilder<String,E> keyBuilder) |
void |
CollectionDiffResult.setAdds(Collection<E> adds) |
void |
MapDiffResult.setAdds(Map<K,V> adds) |
void |
CollectionDiffer.setComparator(Comparator<E> comparator) |
void |
CollectionDiffResult.setEquals(Collection<E> equals) |
void |
MapDiffResult.setEquals(Map<K,V> equals) |
void |
MapDiffer.setKeyComparator(Comparator<K> comparator) |
void |
CollectionDiffResult.setRemoves(Collection<E> removes) |
void |
MapDiffResult.setRemoves(Map<K,V> removes) |
void |
CollectionDiffResult.setUpdates(Collection<E> updates) |
void |
MapDiffResult.setUpdates(Map<K,V> updates) |
void |
MapDiffer.setValueComparator(Comparator<V> comparator) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
VertexConsumer.accept(Graph<T> graph,
Vertex<T> vertex,
Edge<T> edge) |
| 构造器和说明 |
|---|
EnumerationIterable(Enumeration<E> enumeration) |
EnumerationIterable(EnumerationIterator<E> iterator) |
EnumerationIterator(Enumeration<E> enumeration) |
IterableEnumeration(Iterable<E> iterable) |
IterableEnumeration(IteratorEnumeration<E> delegate) |
IteratorEnumeration(Iterator<E> iterator) |
| 限定符和类型 | 方法和说明 |
|---|---|
V |
MultiValueMap.getFirst(K key)
Return the first value for the given key.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
MultiValueMap.add(K key,
V value)
Add the given single value to the current list of values for the given key.
|
void |
MultiValueMap.addIfAbsent(K key,
V value)
|
boolean |
LinkedMultiValueMap.equals(Object obj) |
void |
MultiValueMap.set(K key,
V value)
Set the given single value under the given key.
|
static <K1,V1,K2,V2> |
MultiValueMaps.toMultiValueMap(Map<K1,V1> map,
Function2<K1,V1,K2> keyMapper,
Function2<K1,V1,V2> valueMapper) |
static <K1,V1,K2,V2> |
MultiValueMaps.toMultiValueMap(Map<K1,V1> map,
Function2<K1,V1,K2> keyMapper,
Function2<K1,V1,V2> valueMapper) |
static <K1,V1,C extends Iterable<V1>,K2,V2> |
MultiValueMaps.toMultiValueMap2(Map<K1,C> map,
Function2<K1,V1,K2> keyMapper,
Function2<K1,V1,V2> valueMapper)
将 数组 Iterable
|
static <K1,V1,C extends Iterable<V1>,K2,V2> |
MultiValueMaps.toMultiValueMap2(Map<K1,C> map,
Function2<K1,V1,K2> keyMapper,
Function2<K1,V1,V2> valueMapper)
将 数组 Iterable
|
static <K1,V1,K2,V2> |
MultiValueMaps.toMultiValueMap3(Map<K1,V1[]> map,
Function2<K1,V1,K2> keyMapper,
Function2<K1,V1,V2> valueMapper)
将 数组 V[]中的每一个元素取出来,放到一个 MultiValueMap 中。
|
static <K1,V1,K2,V2> |
MultiValueMaps.toMultiValueMap3(Map<K1,V1[]> map,
Function2<K1,V1,K2> keyMapper,
Function2<K1,V1,V2> valueMapper)
将 数组 V[]中的每一个元素取出来,放到一个 MultiValueMap 中。
|
| 构造器和说明 |
|---|
ListSequence(List<E> list) |
| 限定符和类型 | 方法和说明 |
|---|---|
static <R> AtomicReference<R> |
Atomics.newReference(R initialValue) |
| 限定符和类型 | 方法和说明 |
|---|---|
static SimpleDateFormat |
GlobalThreadLocalMap.getSimpleDateFormat(String pattern,
Locale locale) |
static SimpleDateFormat |
GlobalThreadLocalMap.getSimpleDateFormat(String pattern,
String timeZoneId) |
static SimpleDateFormat |
GlobalThreadLocalMap.getSimpleDateFormat(String pattern,
String timeZoneId,
Locale locale) |
static SimpleDateFormat |
GlobalThreadLocalMap.getSimpleDateFormat(String pattern,
String timeZoneId,
Locale locale) |
static SimpleDateFormat |
GlobalThreadLocalMap.getSimpleDateFormat(String pattern,
TimeZone timeZone) |
static SimpleDateFormat |
GlobalThreadLocalMap.getSimpleDateFormat(String pattern,
TimeZone timeZone,
Locale locale) |
static SimpleDateFormat |
GlobalThreadLocalMap.getSimpleDateFormat(String pattern,
TimeZone timeZone,
Locale locale) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
ConverterService.convert(Object obj,
Class<T> targetClass) |
<S,T> Converter<S,T> |
ConverterService.findConverter(S source,
Class<T> targetClass)
根据 source 是否 为 null 自行决定从哪个registry
|
void |
ConverterService.register(Class targetClass,
Class sourceClass,
Converter converter) |
| 限定符和类型 | 方法和说明 |
|---|---|
Escapers.Builder |
Escapers.Builder.setUnsafeReplacement(String unsafeReplacement)
Sets the replacement string for any characters outside the 'safe' range that have no explicit
replacement.
|
| 构造器和说明 |
|---|
ArrayBasedUnicodeEscaper(ArrayBasedEscaperMap escaperMap,
int safeMin,
int safeMax,
String unsafeReplacement)
Creates a new ArrayBasedUnicodeEscaper instance with the given replacement map and specified
safe range.
|
ArrayBasedUnicodeEscaper(Map<Character,String> replacementMap,
int safeMin,
int safeMax,
String unsafeReplacement)
Creates a new ArrayBasedUnicodeEscaper instance with the given replacement map and specified
safe range.
|
| 限定符和类型 | 方法和说明 |
|---|---|
static <T> T |
ObjectIOs.deserialize(byte[] bytes,
Class<T> targetType) |
static Charset |
Charsets.getCharset(Charset charset) |
static Charset |
Charsets.getCharset(String name) |
static Charset |
Charsets.getCharset(String name,
String defaultName) |
static Charset |
Charsets.getCharset(String name,
String defaultName) |
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,
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)
所有方法最终都是走这个
|
static String |
IODebugger.showBytes(byte[] bytes,
Charset charset) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
static void |
Files.find(File directory,
List<File> out,
int maxDepth,
FileFilter childrenFilter,
FileFilter filter,
Predicate2<List<File>,File> breakPredicate) |
| 限定符和类型 | 方法和说明 |
|---|---|
static Manifest |
Manifests.loadManifest(String jarPath) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
Loggers.log(int count,
org.slf4j.Logger logger,
Level level,
Throwable ex,
String message,
Object... args) |
static void |
Loggers.log(int count,
org.slf4j.Logger logger,
Level level,
Throwable ex,
String message,
Object... args) |
static void |
Loggers.log(int count,
org.slf4j.Logger logger,
Level level,
Throwable ex,
String message,
Object... args) |
static void |
Loggers.log(int count,
org.slf4j.Logger logger,
Level level,
Throwable ex,
String message,
Object... args) |
static void |
Loggers.log(int count,
org.slf4j.Logger logger,
Level level,
Throwable ex,
Supplier<Object[],String> messageSupplier,
Object... args)
把消息记录到日志中
|
static void |
Loggers.log(int count,
org.slf4j.Logger logger,
Level level,
Throwable ex,
Supplier<Object[],String> messageSupplier,
Object... args)
把消息记录到日志中
|
static void |
Loggers.log(int count,
org.slf4j.Logger logger,
Level level,
Throwable ex,
Supplier<Object[],String> messageSupplier,
Object... args)
把消息记录到日志中
|
static void |
Loggers.log(org.slf4j.Logger logger,
Level level,
Throwable ex,
String message,
Object... args) |
static void |
Loggers.log(org.slf4j.Logger logger,
Level level,
Throwable ex,
String message,
Object... args) |
static void |
Loggers.log(org.slf4j.Logger logger,
Level level,
Throwable ex,
String message,
Object... args) |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
Nets.getMac(NetworkInterface networkInterface) |
| 限定符和类型 | 方法和说明 |
|---|---|
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) |
| 限定符和类型 | 方法和说明 |
|---|---|
List<String> |
HttpHeaders.get(Object key) |
String |
HttpHeaders.getAccessControlAllowOrigin()
Return the value of the
Access-Control-Allow-Origin response header. |
HttpMethod |
HttpHeaders.getAccessControlRequestMethod()
Return the value of the
Access-Control-Request-Method request header. |
String |
HttpHeaders.getCacheControl()
Return the value of the
Cache-Control header. |
Locale |
HttpHeaders.getContentLanguage()
Return the first
Locale of the content languages,
as specified by the Content-Language header. |
MediaType |
HttpHeaders.getContentType()
Return the media type of the body, as specified
by the
Content-Type header. |
String |
HttpHeaders.getETag()
Return the entity tag of the body, as specified by the
ETag header. |
protected String |
HttpHeaders.getFieldValues(String headerName)
Retrieve a combined result from the field values of multi-valued headers.
|
String |
HttpHeaders.getFirst(String headerName)
Return the first header value for the given header name, if any.
|
InetSocketAddress |
HttpHeaders.getHost()
Return the value of the
Host header, if available. |
URI |
HttpHeaders.getLocation()
Return the (new) location of a resource
as specified by the
Location header. |
String |
HttpHeaders.getOrigin()
Return the value of the
Origin header. |
String |
HttpHeaders.getPragma()
Return the value of the
Pragma header. |
String |
HttpHeaders.getUpgrade()
Return the value of the
Upgrade header. |
static HttpStatus |
HttpStatus.resolve(int statusCode)
Resolve the given status code to an
HttpStatus, if possible. |
static HttpStatus.Series |
HttpStatus.Series.resolve(int statusCode)
Resolve the given status code to an
HttpStatus.Series, if possible. |
static HttpMethod |
HttpMethod.resolve(String method)
Resolve the given method value to an
HttpMethod. |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
HttpHeaders.add(String headerName,
String headerValue)
Add the given, single header value under the given name.
|
static String |
HttpHeaders.encodeBasicAuth(String username,
String password,
Charset charset)
Encode the given username and password into Basic Authentication credentials.
|
boolean |
HttpHeaders.equals(Object other) |
static List<HttpRange> |
HttpRange.parseRanges(String ranges)
Parse the given, comma-separated string into a list of
HttpRange objects. |
static HttpMethod |
HttpMethod.resolve(String method)
Resolve the given method value to an
HttpMethod. |
void |
HttpHeaders.set(String headerName,
String headerValue)
Set the given, single header value under the given name.
|
void |
HttpHeaders.setAccessControlAllowOrigin(String allowedOrigin)
Set the (new) value of the
Access-Control-Allow-Origin response header. |
void |
HttpHeaders.setAccessControlRequestMethod(HttpMethod requestMethod)
Set the (new) value of the
Access-Control-Request-Method request header. |
void |
HttpHeaders.setBasicAuth(String username,
String password,
Charset charset)
Set the value of the Authorization header to
Basic Authentication based on the given username and password.
|
void |
HttpHeaders.setCacheControl(String cacheControl)
Set the (new) value of the
Cache-Control header. |
void |
HttpHeaders.setContentType(MediaType mediaType)
Set the media type of the body,
as specified by the
Content-Type header. |
void |
HttpHeaders.setETag(String etag)
Set the (new) entity tag of the body, as specified by the
ETag header. |
void |
HttpHeaders.setHost(NetworkAddress host)
Set the (new) value of the
Host header. |
void |
HttpHeaders.setLocation(URI location)
Set the (new) location of a resource,
as specified by the
Location header. |
void |
HttpHeaders.setOrigin(String origin)
Set the (new) value of the
Origin header. |
void |
HttpHeaders.setPragma(String pragma)
Set the (new) value of the
Pragma header. |
void |
HttpHeaders.setUpgrade(String upgrade)
Set the (new) value of the
Upgrade header. |
| 限定符和类型 | 方法和说明 |
|---|---|
Charset |
MimeType.getCharset()
Return the character set, as indicated by a
charset parameter, if any. |
String |
MimeType.getParameter(String name)
Return a generic parameter value, given a parameter name.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
MimeType.equals(Object other) |
boolean |
MimeType.equalsTypeAndSubtype(MimeType other)
Similar to
MimeType.equals(Object) but based on the type and subtype
only, i.e. ignoring parameters. |
boolean |
MediaType.includes(MediaType other)
Indicate whether this
MediaType includes the given media type. |
boolean |
MimeType.includes(MimeType other)
Indicate whether this MIME Type includes the given MIME Type.
|
boolean |
MediaType.isCompatibleWith(MediaType other)
Indicate whether this
MediaType is compatible with the given media type. |
boolean |
MimeType.isCompatibleWith(MimeType other)
Indicate whether this MIME Type is compatible with the given MIME Type.
|
static List<MediaType> |
MediaType.parseMediaTypes(List<String> mediaTypes)
Parse the given list of (potentially) comma-separated strings into a
list of
MediaType objects. |
static List<MediaType> |
MediaType.parseMediaTypes(String mediaTypes)
Parse the comma-separated string into a list of
MediaType objects. |
| 构造器和说明 |
|---|
MediaType(MediaType other,
Map<String,String> parameters)
Copy-constructor that copies the type and subtype of the given
MediaType,
and allows for different parameters. |
MediaType(String type,
String subtype,
Map<String,String> parameters)
Create a new
MediaType for the given type, subtype, and parameters. |
MimeType(MimeType other,
Map<String,String> parameters)
Copy-constructor that copies the type and subtype of the given
MimeType,
and allows for different parameter. |
MimeType(String type,
String subtype,
Map<String,String> parameters)
Create a new
MimeType for the given type, subtype, and parameters. |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
PatternSetExpressionParser.getExcludeFlag() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
AbstractPatternSetMatcher.setDefaultExpression(String defaultExpression) |
void |
AbstractPatternSetMatcher.setDefaultPatternSet(PatternSet<PatternEntry> defaultPatternSet) |
void |
AbstractPatternSetMatcher.setPatternExpression(String expression) |
| 限定符和类型 | 方法和说明 |
|---|---|
static boolean |
RegExpPatterns.test(Pattern pattern,
String string) |
static boolean |
RegExpPatterns.test(Pattern pattern,
String string) |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
Reflects.getMethodString(Class clazz,
String methodName,
Class[] parameterTypes) |
static String |
Reflects.getMethodString(String clazzFQN,
String methodName,
Class returnType,
Class[] parameterTypes) |
static String |
Reflects.getMethodString(String clazzFQN,
String methodName,
Class returnType,
Class[] parameterTypes) |
static String |
Reflects.getMethodString(String clazzFQN,
String methodName,
Class returnType,
Class[] parameterTypes) |
static <V> V |
Reflects.invoke(Method method,
Object object,
Object[] parameters,
boolean force,
boolean throwException) |
static <V> V |
Reflects.invoke(Method method,
Object object,
Object[] parameters,
boolean force,
boolean throwException) |
static <V> V |
Reflects.invokeAnyMethod(Object object,
String methodName,
Class[] parameterTypes,
Object[] parameters,
boolean force,
boolean throwException) |
static <V> V |
Reflects.invokeAnyMethod(Object object,
String methodName,
Class[] parameterTypes,
Object[] parameters,
boolean force,
boolean throwException) |
static <V> V |
Reflects.invokeAnyMethodForcedIfPresent(Object object,
String methodName,
Class[] parameterTypes,
Object[] parameters) |
static <V> V |
Reflects.invokeAnyMethodForcedIfPresent(Object object,
String methodName,
Class[] parameterTypes,
Object[] parameters) |
static <V> V |
Reflects.invokeDeclaredMethod(Object object,
String methodName,
Class[] parameterTypes,
Object[] parameters,
boolean force,
boolean throwException) |
static <V> V |
Reflects.invokeDeclaredMethod(Object object,
String methodName,
Class[] parameterTypes,
Object[] parameters,
boolean force,
boolean throwException) |
static <V> V |
Reflects.invokeDeclaredMethodForcedIfPresent(Object object,
String methodName,
Class[] parameterTypes,
Object[] parameters) |
static <V> V |
Reflects.invokeDeclaredMethodForcedIfPresent(Object object,
String methodName,
Class[] parameterTypes,
Object[] parameters) |
static <V> V |
Reflects.invokePublicMethod(Object object,
String methodName,
Class[] parameterTypes,
Object[] parameters,
boolean force,
boolean throwException) |
static <V> V |
Reflects.invokePublicMethod(Object object,
String methodName,
Class[] parameterTypes,
Object[] parameters,
boolean force,
boolean throwException) |
static <V> V |
Reflects.invokePublicMethodForcedIfPresent(Object object,
String methodName,
Class[] parameterTypes,
Object[] parameters) |
static <V> V |
Reflects.invokePublicMethodForcedIfPresent(Object object,
String methodName,
Class[] parameterTypes,
Object[] parameters) |
static boolean |
Reflects.isEqualsMethod(Method method)
Determine whether the given method is an "equals" method.
|
static boolean |
Reflects.isHashCodeMethod(Method method)
Determine whether the given method is a "hashCode" method.
|
static boolean |
Reflects.isObjectMethod(Method method)
Determine whether the given method is originally declared by
Object. |
static boolean |
Reflects.isToStringMethod(Method method)
Determine whether the given method is a "toString" method.
|
static <E> E |
Reflects.newInstance(Class<E> clazz,
Class[] parameterTypes,
Object... parameters) |
static <E> E |
Reflects.newInstance(Constructor<E> constructor,
Object... parameters) |
| 构造器和说明 |
|---|
FieldComparator(Class clazz,
String fieldName,
Comparator fieldComparator) |
FieldComparator(Field field,
Comparator<V> fieldComparator) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
StopWatch.currentTaskName()
Return the name of the currently running task, if any.
|
Copyright © 2022. All rights reserved.