Package | Description |
---|---|
sf.database.jdbc.sql | |
sf.spring.core.io |
Generic abstraction for (file-based) resources, used throughout the framework.
|
sf.spring.core.io.support |
Support classes for Spring's resource abstraction.
|
sf.spring.core.type |
Core support package for type introspection.
|
sf.spring.core.type.classreading |
Support classes for reading annotation and class-level metadata.
|
sf.spring.util |
Miscellaneous utility classes, such as String manipulation utilities,
a Log4J configurer, and a state holder for paged lists of objects.
|
Modifier and Type | Method and Description |
---|---|
T |
StatementCallback.doInStatement(Statement stmt) |
Modifier and Type | Method and Description |
---|---|
protected static String |
VfsUtils.doGetPath(Object resource) |
protected static Object |
VfsUtils.doGetVisitorAttributes() |
ClassLoader |
ClassPathResource.getClassLoader()
Return the ClassLoader that this resource will be obtained from.
|
ClassLoader |
DefaultResourceLoader.getClassLoader()
Return the ClassLoader to load class path resources with.
|
ClassLoader |
ResourceLoader.getClassLoader()
Expose the ClassLoader used by this ResourceLoader.
|
String |
Resource.getFilename()
Determine a filename for this resource, i.e.
|
String |
AbstractResource.getFilename()
This implementation always returns
null ,
assuming that this resource type does not have a filename. |
String |
ClassPathResource.getFilename()
This implementation returns the name of the file that this class path
resource refers to.
|
Resource |
ProtocolResolver.resolve(String location,
ResourceLoader resourceLoader)
Resolve the given location against the given resource loader
if this implementation's protocol matches.
|
protected URL |
ClassPathResource.resolveURL()
Resolves a URL for the underlying class path resource.
|
Modifier and Type | Method and Description |
---|---|
protected static Object |
VfsUtils.invokeVfsMethod(Method method,
Object target,
Object... args) |
void |
DefaultResourceLoader.setClassLoader(ClassLoader classLoader)
Specify the ClassLoader to load class path resources with, or
null
for using the thread context class loader at the time of actual resource access. |
Constructor and Description |
---|
ByteArrayResource(byte[] byteArray,
String description)
Create a new
ByteArrayResource with a description. |
ClassPathContextResource(String path,
ClassLoader classLoader) |
ClassPathResource(String path,
Class<?> clazz)
Create a new
ClassPathResource for Class usage. |
ClassPathResource(String path,
ClassLoader classLoader)
Create a new
ClassPathResource for ClassLoader usage. |
ClassPathResource(String path,
ClassLoader classLoader,
Class<?> clazz)
Deprecated.
as of 4.3.13, in favor of selective use of
ClassPathResource.ClassPathResource(String, ClassLoader) vs ClassPathResource.ClassPathResource(String, Class) |
ClassPathResource(String path,
ClassLoader classLoader,
Class<?> clazz)
Deprecated.
as of 4.3.13, in favor of selective use of
ClassPathResource.ClassPathResource(String, ClassLoader) vs ClassPathResource.ClassPathResource(String, Class) |
DefaultResourceLoader(ClassLoader classLoader)
Create a new DefaultResourceLoader.
|
DescriptiveResource(String description)
Create a new DescriptiveResource.
|
InputStreamResource(InputStream inputStream,
String description)
Create a new InputStreamResource.
|
UrlResource(String protocol,
String location,
String fragment)
Create a new
UrlResource based on a URI specification. |
Modifier and Type | Method and Description |
---|---|
ClassLoader |
PathMatchingResourcePatternResolver.getClassLoader() |
Modifier and Type | Method and Description |
---|---|
protected void |
PathMatchingResourcePatternResolver.addAllClassLoaderJarRoots(ClassLoader classLoader,
Set<Resource> result)
Search all
URLClassLoader URLs for jar file references and add them to the
given set of resources in the form of pointers to the root of the jar file content. |
Constructor and Description |
---|
PathMatchingResourcePatternResolver(ClassLoader classLoader)
Create a new PathMatchingResourcePatternResolver with a DefaultResourceLoader.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
AnnotatedTypeMetadata.getAllAnnotationAttributes(String annotationName)
Retrieve all attributes of all annotations of the given type, if any (i.e.
|
Map<String,Object> |
StandardMethodMetadata.getAllAnnotationAttributes(String annotationName) |
Map<String,Object> |
AnnotatedTypeMetadata.getAllAnnotationAttributes(String annotationName,
boolean classValuesAsString)
Retrieve all attributes of all annotations of the given type, if any (i.e.
|
Map<String,Object> |
StandardMethodMetadata.getAllAnnotationAttributes(String annotationName,
boolean classValuesAsString) |
Map<String,Object> |
AnnotatedTypeMetadata.getAnnotationAttributes(String annotationName)
Retrieve the attributes of the annotation of the given type, if any (i.e.
|
Map<String,Object> |
StandardMethodMetadata.getAnnotationAttributes(String annotationName) |
Map<String,Object> |
AnnotatedTypeMetadata.getAnnotationAttributes(String annotationName,
boolean classValuesAsString)
Retrieve the attributes of the annotation of the given type, if any (i.e.
|
Map<String,Object> |
StandardMethodMetadata.getAnnotationAttributes(String annotationName,
boolean classValuesAsString) |
String |
ClassMetadata.getEnclosingClassName()
Return the name of the enclosing class of the underlying class,
or
null if the underlying class is a top-level class. |
String |
StandardClassMetadata.getEnclosingClassName() |
String |
ClassMetadata.getSuperClassName()
Return the name of the super class of the underlying class,
or
null if there is no super class defined. |
String |
StandardClassMetadata.getSuperClassName() |
Constructor and Description |
---|
CachingMetadataReaderFactory(ClassLoader classLoader)
Create a new CachingMetadataReaderFactory for the given
ClassLoader ,
using a local resource cache. |
CachingMetadataReaderFactory(ResourceLoader resourceLoader)
Create a new CachingMetadataReaderFactory for the given
ResourceLoader ,
using a shared resource cache if supported or a local resource cache otherwise. |
SimpleMetadataReaderFactory(ClassLoader classLoader)
Create a new SimpleMetadataReaderFactory for the given class loader.
|
SimpleMetadataReaderFactory(ResourceLoader resourceLoader)
Create a new SimpleMetadataReaderFactory for the given resource loader.
|
Modifier and Type | Method and Description |
---|---|
V |
LinkedCaseInsensitiveMap.computeIfAbsent(String key,
Function<? super String,? extends V> mappingFunction) |
static String[] |
StringUtils.concatenateStringArrays(String[] array1,
String[] array2)
Concatenate the given
String arrays into one,
with overlapping array elements included twice. |
String |
StopWatch.currentTaskName()
Get the name of the currently running task, if any.
|
static Class<?> |
ClassUtils.determineCommonAncestor(Class<?> clazz1,
Class<?> clazz2)
Determine the common ancestor of the given classes, if any.
|
<T> T |
ConcurrentReferenceHashMap.Segment.doTask(int hash,
Object key,
sf.spring.util.ConcurrentReferenceHashMap.Task<T> task)
Apply an update operation to this segment.
|
static Class<?> |
CollectionUtils.findCommonElementType(Collection<?> collection)
Find the common element type of the given Collection, if any.
|
static Field |
ReflectionUtils.findField(Class<?> clazz,
String name)
|
static Field |
ReflectionUtils.findField(Class<?> clazz,
String name,
Class<?> type)
|
static <E> E |
CollectionUtils.findFirstMatch(Collection<?> source,
Collection<E> candidates)
Return the first element in '
candidates ' that is contained in
'source '. |
static Method |
ReflectionUtils.findMethod(Class<?> clazz,
String name)
Attempt to find a
Method on the supplied class with the supplied name
and no parameters. |
static Method |
ReflectionUtils.findMethod(Class<?> clazz,
String name,
Class<?>... paramTypes)
Attempt to find a
Method on the supplied class with the supplied name
and parameter types. |
static Object |
CollectionUtils.findValueOfType(Collection<?> collection,
Class<?>[] types)
Find a single value of one of the given types in the given Collection:
searching the Collection for a value of the first type, then
searching for a value of the second type, etc.
|
static <T> T |
CollectionUtils.findValueOfType(Collection<?> collection,
Class<T> type)
Find a single value of the given type in the given Collection.
|
static <T> T |
CollectionUtils.firstElement(List<T> list)
Retrieve the first element of the given List, accessing the zero index.
|
static <T> T |
CollectionUtils.firstElement(Set<T> set)
Retrieve the first element of the given Set, using
SortedSet.first()
or otherwise using the iterator. |
ConcurrentReferenceHashMap.Entry<K,V> |
ConcurrentReferenceHashMap.Reference.get()
Return the referenced entry, or
null if the entry is no longer available. |
V |
ConcurrentReferenceHashMap.get(Object key) |
V |
LinkedCaseInsensitiveMap.get(Object key) |
V |
LinkedCaseInsensitiveMap.getCaseSensitive(Object key)
获取key大小写敏感的值
|
static <T> Constructor<T> |
ClassUtils.getConstructorIfAvailable(Class<T> clazz,
Class<?>... paramTypes)
Determine whether the given class has a public constructor with the given signature,
and return it if available (else return
null ). |
static ClassLoader |
ClassUtils.getDefaultClassLoader()
Return the default ClassLoader to use: typically the thread context
ClassLoader, if available; the ClassLoader that loaded the ClassUtils
class will be used as fallback.
|
static String |
ClassUtils.getDescriptiveType(Object value)
Return a descriptive name for the given object's type: usually simply
the class name, but component type class name + "[]" for arrays,
and an appended list of implemented interfaces for JDK proxies.
|
static Object |
ReflectionUtils.getField(Field field,
Object target)
Get the field represented by the supplied
field object on the
specified target object . |
static String |
StringUtils.getFilename(String path)
Extract the filename from the given Java resource path,
e.g.
|
static String |
StringUtils.getFilenameExtension(String path)
Extract the filename extension from the given Java resource path,
e.g.
|
V |
MultiValueMap.getFirst(K key)
Return the first value for the given key.
|
K |
ConcurrentReferenceHashMap.Entry.getKey() |
static Method |
ClassUtils.getMethodIfAvailable(Class<?> clazz,
String methodName,
Class<?>... paramTypes)
Determine whether the given class has a public method with the given signature,
and return it if available (else return
null ). |
ConcurrentReferenceHashMap.Reference<K,V> |
ConcurrentReferenceHashMap.Reference.getNext()
Return the next reference in the chain, or
null if none. |
V |
ConcurrentReferenceHashMap.getOrDefault(Object key,
V defaultValue) |
V |
LinkedCaseInsensitiveMap.getOrDefault(Object key,
V defaultValue) |
protected ConcurrentReferenceHashMap.Reference<K,V> |
ConcurrentReferenceHashMap.getReference(Object key,
ConcurrentReferenceHashMap.Restructure restructure)
Return a
ConcurrentReferenceHashMap.Reference to the ConcurrentReferenceHashMap.Entry for the specified key ,
or null if not found. |
ConcurrentReferenceHashMap.Reference<K,V> |
ConcurrentReferenceHashMap.Segment.getReference(Object key,
int hash,
ConcurrentReferenceHashMap.Restructure restructure) |
static Method |
ClassUtils.getStaticMethod(Class<?> clazz,
String methodName,
Class<?>... args)
Return a public static method of a class.
|
V |
ConcurrentReferenceHashMap.Entry.getValue() |
static Object |
ReflectionUtils.invokeMethod(Method method,
Object target)
Invoke the specified
Method against the supplied target object with no arguments. |
static Object |
ReflectionUtils.invokeMethod(Method method,
Object target,
Object... args)
Invoke the specified
Method against the supplied target object with the
supplied arguments. |
static <T> T |
CollectionUtils.lastElement(List<T> list)
Retrieve the last element of the given List, accessing the highest index.
|
static <T> T |
CollectionUtils.lastElement(Set<T> set)
Retrieve the last element of the given Set, using
SortedSet.last()
or otherwise iterating over all elements (assuming a linked set). |
static String[] |
StringUtils.mergeStringArrays(String[] array1,
String[] array2)
Deprecated.
as of 4.3.15, in favor of manual merging via
LinkedHashSet
(with every entry included at most once, even entries within the first array) |
static ClassLoader |
ClassUtils.overrideThreadContextClassLoader(ClassLoader classLoaderToUse)
Override the thread context ClassLoader with the environment's bean ClassLoader
if necessary, i.e.
|
static Locale |
StringUtils.parseLocale(String localeValue)
Parse the given
String value into a Locale , accepting
the Locale.toString() format as well as BCP 47 language tags. |
static Locale |
StringUtils.parseLocaleString(String localeString)
Parse the given
String representation into a Locale . |
ConcurrentReferenceHashMap.Reference<K,V> |
ConcurrentReferenceHashMap.ReferenceManager.pollForPurge()
Return any reference that has been garbage collected and can be purged from the
underlying structure or
null if no references need purging. |
V |
ConcurrentReferenceHashMap.put(K key,
V value) |
V |
LinkedCaseInsensitiveMap.put(String key,
V value) |
V |
ConcurrentReferenceHashMap.putIfAbsent(K key,
V value) |
V |
LinkedCaseInsensitiveMap.putIfAbsent(String key,
V value) |
static String |
StringUtils.quote(String str)
Quote the given
String with single quotes. |
static Object |
StringUtils.quoteIfString(Object obj)
Turn the given Object into a
String with single quotes
if it is a String ; keeping the Object as-is else. |
V |
ConcurrentReferenceHashMap.remove(Object key) |
V |
LinkedCaseInsensitiveMap.remove(Object key) |
V |
ConcurrentReferenceHashMap.replace(K key,
V value) |
String |
PropertyPlaceholderHelper.PlaceholderResolver.resolvePlaceholder(String placeholderName)
Resolve the supplied placeholder name to the replacement value.
|
static Class<?> |
ClassUtils.resolvePrimitiveClassName(String name)
Resolve the given class name as primitive class, if appropriate,
according to the JVM's naming rules for primitive classes.
|
V |
ConcurrentReferenceHashMap.Entry.setValue(V value) |
static String[] |
StringUtils.split(String toSplit,
String delimiter)
Split a
String at the first occurrence of the delimiter. |
static Properties |
StringUtils.splitArrayElementsIntoProperties(String[] array,
String delimiter)
Take an array of strings and split each element based on the given delimiter.
|
static Properties |
StringUtils.splitArrayElementsIntoProperties(String[] array,
String delimiter,
String charsToDelete)
Take an array of strings and split each element based on the given delimiter.
|
static Object |
ObjectUtils.unwrapOptional(Object obj)
Unwrap the given object which is potentially a
Optional . |
Modifier and Type | Method and Description |
---|---|
void |
MultiValueMap.add(K key,
V value)
Add the given single value to the current list of values for the given key.
|
default void |
MultiValueMap.addIfAbsent(K key,
V value)
|
static <A,O extends A> |
ObjectUtils.addObjectToArray(A[] array,
O obj)
Append the given object to the given array, returning a new array
consisting of the input array contents plus the given object.
|
static <A,O extends A> |
ObjectUtils.addObjectToArray(A[] array,
O obj)
Append the given object to the given array, returning a new array
consisting of the input array contents plus the given object.
|
static String[] |
StringUtils.addStringToArray(String[] array,
String str)
Append the given
String to the given String array,
returning a new array consisting of the input array contents plus
the given String . |
static String |
StringUtils.arrayToCommaDelimitedString(Object[] arr)
Convert a
String array into a comma delimited String
(i.e., CSV). |
static String |
StringUtils.arrayToDelimitedString(Object[] arr,
String delim)
Convert a
String array into a delimited String (e.g. |
static List |
CollectionUtils.arrayToList(Object source)
Convert the supplied array into a List.
|
static String |
ClassUtils.classNamesToString(Collection<Class<?>> classes)
Build a String that consists of the names of the classes/interfaces
in the given collection.
|
static String |
ClassUtils.classPackageAsResourcePath(Class<?> clazz)
Given an input class object, return a string which consists of the
class's package name as a pathname, i.e., all dots ('.') are replaced by
slashes ('/').
|
static String |
StringUtils.collectionToCommaDelimitedString(Collection<?> coll)
Convert a
Collection into a delimited String (e.g., CSV). |
static String |
StringUtils.collectionToDelimitedString(Collection<?> coll,
String delim)
Convert a
Collection into a delimited String (e.g. |
static String |
StringUtils.collectionToDelimitedString(Collection<?> coll,
String delim,
String prefix,
String suffix)
Convert a
Collection to a delimited String (e.g. |
static Set<String> |
StringUtils.commaDelimitedListToSet(String str)
Convert a comma delimited list (e.g., a row from a CSV file) into a set.
|
static String[] |
StringUtils.commaDelimitedListToStringArray(String str)
Convert a comma delimited list (e.g., a row from a CSV file) into an
array of strings.
|
static String[] |
StringUtils.concatenateStringArrays(String[] array1,
String[] array2)
Concatenate the given
String arrays into one,
with overlapping array elements included twice. |
static String[] |
StringUtils.concatenateStringArrays(String[] array1,
String[] array2)
Concatenate the given
String arrays into one,
with overlapping array elements included twice. |
static boolean |
CollectionUtils.contains(Enumeration<?> enumeration,
Object element)
Check whether the given Enumeration contains the given element.
|
static boolean |
CollectionUtils.contains(Iterator<?> iterator,
Object element)
Check whether the given Iterator contains the given element.
|
static boolean |
ObjectUtils.containsElement(Object[] array,
Object element)
Check whether the given array contains the given element.
|
static boolean |
CollectionUtils.containsInstance(Collection<?> collection,
Object element)
Check whether the given Collection contains the given element instance.
|
boolean |
ConcurrentReferenceHashMap.containsKey(Object key) |
static boolean |
StringUtils.containsWhitespace(CharSequence str)
Check whether the given
CharSequence contains any whitespace characters. |
static boolean |
StringUtils.containsWhitespace(String str)
Check whether the given
String contains any whitespace characters. |
static Class<?> |
ClassUtils.createCompositeInterface(Class<?>[] interfaces,
ClassLoader classLoader)
Create a composite interface Class for the given interfaces,
implementing the given interfaces in one single Class.
|
ConcurrentReferenceHashMap.Reference<K,V> |
ConcurrentReferenceHashMap.ReferenceManager.createReference(ConcurrentReferenceHashMap.Entry<K,V> entry,
int hash,
ConcurrentReferenceHashMap.Reference<K,V> next)
Factory method used to create a new
ConcurrentReferenceHashMap.Reference . |
static String |
StringUtils.deleteAny(String inString,
String charsToDelete)
Delete any character in a given
String . |
static String[] |
StringUtils.delimitedListToStringArray(String str,
String delimiter)
Take a
String that is a delimited list and convert it into a
String array. |
static String[] |
StringUtils.delimitedListToStringArray(String str,
String delimiter)
Take a
String that is a delimited list and convert it into a
String array. |
static String[] |
StringUtils.delimitedListToStringArray(String str,
String delimiter,
String charsToDelete)
Take a
String that is a delimited list and convert it into
a String array. |
static String[] |
StringUtils.delimitedListToStringArray(String str,
String delimiter,
String charsToDelete)
Take a
String that is a delimited list and convert it into
a String array. |
static String[] |
StringUtils.delimitedListToStringArray(String str,
String delimiter,
String charsToDelete)
Take a
String that is a delimited list and convert it into
a String array. |
static Class<?> |
ClassUtils.determineCommonAncestor(Class<?> clazz1,
Class<?> clazz2)
Determine the common ancestor of the given classes, if any.
|
static Class<?> |
ClassUtils.determineCommonAncestor(Class<?> clazz1,
Class<?> clazz2)
Determine the common ancestor of the given classes, if any.
|
static void |
Assert.doesNotContain(String textToSearch,
String substring)
Deprecated.
as of 4.3.7, in favor of
Assert.doesNotContain(String, String, String) |
static void |
Assert.doesNotContain(String textToSearch,
String substring,
String message)
Assert that the given text does not contain the given substring.
|
static void |
Assert.doesNotContain(String textToSearch,
String substring,
Supplier<String> messageSupplier)
Assert that the given text does not contain the given substring.
|
protected boolean |
AntPathMatcher.doMatch(String pattern,
String path,
boolean fullMatch,
Map<String,String> uriTemplateVariables)
Actually match the given
path against the given pattern . |
protected boolean |
AntPathMatcher.doMatch(String pattern,
String path,
boolean fullMatch,
Map<String,String> uriTemplateVariables)
Actually match the given
path against the given pattern . |
<T> T |
ConcurrentReferenceHashMap.Segment.doTask(int hash,
Object key,
sf.spring.util.ConcurrentReferenceHashMap.Task<T> task)
Apply an update operation to this segment.
|
static void |
ReflectionUtils.doWithFields(Class<?> clazz,
ReflectionUtils.FieldCallback fc,
ReflectionUtils.FieldFilter ff)
Invoke the given callback on all fields in the target class, going up the
class hierarchy to get all declared fields.
|
static void |
ReflectionUtils.doWithMethods(Class<?> clazz,
ReflectionUtils.MethodCallback mc,
ReflectionUtils.MethodFilter mf)
Perform the given callback operation on all matching methods of the given
class and superclasses (or given interface and super-interfaces).
|
static boolean |
StringUtils.endsWithIgnoreCase(String str,
String suffix)
Test if the given
String ends with the specified suffix,
ignoring upper/lower case. |
static boolean |
StringUtils.endsWithIgnoreCase(String str,
String suffix)
Test if the given
String ends with the specified suffix,
ignoring upper/lower case. |
boolean |
ConcurrentReferenceHashMap.Entry.equals(Object other) |
boolean |
LinkedCaseInsensitiveMap.equals(Object obj) |
static Field |
ReflectionUtils.findField(Class<?> clazz,
String name,
Class<?> type)
|
static Field |
ReflectionUtils.findField(Class<?> clazz,
String name,
Class<?> type)
|
static Method |
ReflectionUtils.findMethod(Class<?> clazz,
String name,
Class<?>... paramTypes)
Attempt to find a
Method on the supplied class with the supplied name
and parameter types. |
static <T> T |
CollectionUtils.findValueOfType(Collection<?> collection,
Class<T> type)
Find a single value of the given type in the given Collection.
|
static <T> T |
CollectionUtils.firstElement(List<T> list)
Retrieve the first element of the given List, accessing the zero index.
|
static <T> T |
CollectionUtils.firstElement(Set<T> set)
Retrieve the first element of the given Set, using
SortedSet.first()
or otherwise using the iterator. |
static Class<?> |
ClassUtils.forName(String name,
ClassLoader classLoader)
Replacement for
Class.forName() that also returns Class instances
for primitives (e.g. |
V |
ConcurrentReferenceHashMap.get(Object key) |
static Class<?>[] |
ClassUtils.getAllInterfacesForClass(Class<?> clazz,
ClassLoader classLoader)
Return all interfaces that the given class implements as an array,
including ones implemented by superclasses.
|
static Set<Class<?>> |
ClassUtils.getAllInterfacesForClassAsSet(Class<?> clazz,
ClassLoader classLoader)
Return all interfaces that the given class implements as a Set,
including ones implemented by superclasses.
|
static String |
ClassUtils.getDescriptiveType(Object value)
Return a descriptive name for the given object's type: usually simply
the class name, but component type class name + "[]" for arrays,
and an appended list of implemented interfaces for JDK proxies.
|
static String |
ObjectUtils.getDisplayString(Object obj)
Return a content-based String representation if
obj is
not null ; otherwise returns an empty String. |
static Object |
ReflectionUtils.getField(Field field,
Object target)
Get the field represented by the supplied
field object on the
specified target object . |
static String |
StringUtils.getFilename(String path)
Extract the filename from the given Java resource path,
e.g.
|
static String |
StringUtils.getFilenameExtension(String path)
Extract the filename extension from the given Java resource path,
e.g.
|
protected int |
ConcurrentReferenceHashMap.getHash(Object o)
Get the hash for a given object, apply an additional hash function to reduce
collisions.
|
static Method |
ClassUtils.getMethod(Class<?> clazz,
String methodName,
Class<?>... paramTypes)
Determine whether the given class has a public method with the given signature,
and return it if available (else throws an
IllegalStateException ). |
static Method |
ClassUtils.getMethodIfAvailable(Class<?> clazz,
String methodName,
Class<?>... paramTypes)
Determine whether the given class has a public method with the given signature,
and return it if available (else return
null ). |
static Method |
ClassUtils.getMostSpecificMethod(Method method,
Class<?> targetClass)
Given a method, which may come from an interface, and a target class used
in the current reflective invocation, find the corresponding target method
if there is one.
|
V |
ConcurrentReferenceHashMap.getOrDefault(Object key,
V defaultValue) |
V |
ConcurrentReferenceHashMap.getOrDefault(Object key,
V defaultValue) |
static String |
ClassUtils.getQualifiedMethodName(Method method,
Class<?> clazz)
Return the qualified name of the given method, consisting of
fully qualified interface/class name + "." + method name.
|
protected ConcurrentReferenceHashMap.Reference<K,V> |
ConcurrentReferenceHashMap.getReference(Object key,
ConcurrentReferenceHashMap.Restructure restructure)
Return a
ConcurrentReferenceHashMap.Reference to the ConcurrentReferenceHashMap.Entry for the specified key ,
or null if not found. |
ConcurrentReferenceHashMap.Reference<K,V> |
ConcurrentReferenceHashMap.Segment.getReference(Object key,
int hash,
ConcurrentReferenceHashMap.Restructure restructure) |
static Method[] |
ReflectionUtils.getUniqueDeclaredMethods(Class<?> leafClass,
ReflectionUtils.MethodFilter mf)
Get the unique set of declared methods on the leaf class and all superclasses.
|
static boolean |
StringUtils.hasLength(CharSequence str)
Check that the given
CharSequence is neither null nor
of length 0. |
static void |
Assert.hasLength(String text)
Deprecated.
as of 4.3.7, in favor of
Assert.hasLength(String, String) |
static boolean |
StringUtils.hasLength(String str)
Check that the given
String is neither null nor of length 0. |
static void |
Assert.hasLength(String text,
String message)
Assert that the given String is not empty; that is,
it must not be
null and not the empty String. |
static void |
Assert.hasLength(String text,
Supplier<String> messageSupplier)
Assert that the given String is not empty; that is,
it must not be
null and not the empty String. |
static boolean |
StringUtils.hasText(CharSequence str)
Check whether the given
CharSequence contains actual text. |
static void |
Assert.hasText(String text)
Deprecated.
as of 4.3.7, in favor of
Assert.hasText(String, String) |
static boolean |
StringUtils.hasText(String str)
Check whether the given
String contains actual text. |
static void |
Assert.hasText(String text,
String message)
Assert that the given String contains valid text content; that is, it must not
be
null and must contain at least one non-whitespace character. |
static void |
Assert.hasText(String text,
Supplier<String> messageSupplier)
Assert that the given String contains valid text content; that is, it must not
be
null and must contain at least one non-whitespace character. |
static String |
ObjectUtils.identityToString(Object obj)
Return a String representation of an object's overall identity.
|
static Object |
ReflectionUtils.invokeMethod(Method method,
Object target)
Invoke the specified
Method against the supplied target object with no arguments. |
static Object |
ReflectionUtils.invokeMethod(Method method,
Object target,
Object... args)
Invoke the specified
Method against the supplied target object with the
supplied arguments. |
static Object |
ReflectionUtils.invokeMethod(Method method,
Object target,
Object... args)
Invoke the specified
Method against the supplied target object with the
supplied arguments. |
static boolean |
ObjectUtils.isArray(Object obj)
Determine whether the given object is an array:
either an Object array or a primitive array.
|
static void |
Assert.isAssignable(Class<?> superType,
Class<?> subType,
String message)
Assert that
superType.isAssignableFrom(subType) is true . |
static void |
Assert.isAssignable(Class<?> superType,
Class<?> subType,
Supplier<String> messageSupplier)
Assert that
superType.isAssignableFrom(subType) is true . |
static boolean |
ClassUtils.isAssignableValue(Class<?> type,
Object value)
Determine if the given type is assignable from the given value,
assuming setting by reflection.
|
static boolean |
ClassUtils.isCacheSafe(Class<?> clazz,
ClassLoader classLoader)
Check whether the given class is cache-safe in the given context,
i.e.
|
static boolean |
ClassUtils.isCglibProxyClass(Class<?> clazz)
Deprecated.
as of 5.2, in favor of custom (possibly narrower) checks
|
static boolean |
ClassUtils.isCglibProxyClassName(String className)
Deprecated.
as of 5.2, in favor of custom (possibly narrower) checks
|
static boolean |
ObjectUtils.isCompatibleWithThrowsClause(Throwable ex,
Class<?>... declaredExceptions)
Check whether the given exception is compatible with the specified
exception types, as declared in a throws clause.
|
static boolean |
CollectionUtils.isEmpty(Collection<?> collection)
Return
true if the supplied Collection is null or empty. |
static boolean |
CollectionUtils.isEmpty(Map<?,?> map)
Return
true if the supplied Map is null or empty. |
static boolean |
StringUtils.isEmpty(Object str)
Check whether the given object (possibly a
String ) is empty. |
static boolean |
ObjectUtils.isEmpty(Object obj)
Determine whether the given object is empty.
|
static boolean |
ObjectUtils.isEmpty(Object[] array)
Determine whether the given array is empty:
i.e.
|
static boolean |
ReflectionUtils.isEqualsMethod(Method method)
Determine whether the given method is an "equals" method.
|
static boolean |
ReflectionUtils.isHashCodeMethod(Method method)
Determine whether the given method is a "hashCode" method.
|
static void |
Assert.isInstanceOf(Class<?> type,
Object obj)
Assert that the provided object is an instance of the provided class.
|
static void |
Assert.isInstanceOf(Class<?> type,
Object obj,
String message)
Assert that the provided object is an instance of the provided class.
|
static void |
Assert.isInstanceOf(Class<?> type,
Object obj,
Supplier<String> messageSupplier)
Assert that the provided object is an instance of the provided class.
|
static boolean |
CollectionUtils.isNotEmpty(Collection<?> collection) |
static boolean |
CollectionUtils.isNotEmpty(Map<?,?> map) |
static void |
Assert.isNull(Object object)
Deprecated.
as of 4.3.7, in favor of
Assert.isNull(Object, String) |
static void |
Assert.isNull(Object object,
String message)
Assert that an object is
null . |
static void |
Assert.isNull(Object object,
Supplier<String> messageSupplier)
Assert that an object is
null . |
static boolean |
ReflectionUtils.isObjectMethod(Method method)
Determine whether the given method is originally declared by
Object . |
boolean |
AntPathMatcher.isPattern(String path) |
static boolean |
ClassUtils.isPresent(String className,
ClassLoader classLoader)
Determine whether the
Class identified by the supplied name is present
and can be loaded. |
static boolean |
ReflectionUtils.isToStringMethod(Method method)
Determine whether the given method is a "toString" method.
|
static boolean |
ResourceUtils.isUrl(String resourceLocation)
Return whether the given resource location is a URL:
either a special "classpath" pseudo URL or a standard URL.
|
static boolean |
ClassUtils.isVisible(Class<?> clazz,
ClassLoader classLoader)
Check whether the given class is visible in the given ClassLoader.
|
static <T> T |
CollectionUtils.lastElement(List<T> list)
Retrieve the last element of the given List, accessing the highest index.
|
static <T> T |
CollectionUtils.lastElement(Set<T> set)
Retrieve the last element of the given Set, using
SortedSet.last()
or otherwise iterating over all elements (assuming a linked set). |
static boolean |
ClassUtils.matchesTypeName(Class<?> clazz,
String typeName)
Check whether the given class matches the user-specified type name.
|
boolean |
AntPathMatcher.AntPathStringMatcher.matchStrings(String str,
Map<String,String> uriTemplateVariables)
Main entry point.
|
static <E> void |
CollectionUtils.mergeArrayIntoCollection(Object array,
Collection<E> collection)
Merge the given array into the given Collection.
|
static <K,V> void |
CollectionUtils.mergePropertiesIntoMap(Properties props,
Map<K,V> map)
Merge the given Properties instance into the given Map,
copying all properties (key-value pairs) over.
|
static String[] |
StringUtils.mergeStringArrays(String[] array1,
String[] array2)
Deprecated.
as of 4.3.15, in favor of manual merging via
LinkedHashSet
(with every entry included at most once, even entries within the first array) |
static String[] |
StringUtils.mergeStringArrays(String[] array1,
String[] array2)
Deprecated.
as of 4.3.15, in favor of manual merging via
LinkedHashSet
(with every entry included at most once, even entries within the first array) |
static void |
Assert.noNullElements(Collection<?> collection,
String message)
Assert that a collection contains no
null elements. |
static void |
Assert.noNullElements(Collection<?> collection,
Supplier<String> messageSupplier)
Assert that a collection contains no
null elements. |
static void |
Assert.noNullElements(Object[] array)
Deprecated.
as of 4.3.7, in favor of
Assert.noNullElements(Object[], String) |
static void |
Assert.noNullElements(Object[] array,
String message)
Assert that an array contains no
null elements. |
static void |
Assert.noNullElements(Object[] array,
Supplier<String> messageSupplier)
Assert that an array contains no
null elements. |
static void |
Assert.notEmpty(Collection<?> collection)
Deprecated.
as of 4.3.7, in favor of
Assert.notEmpty(Collection, String) |
static void |
Assert.notEmpty(Collection<?> collection,
String message)
Assert that a collection contains elements; that is, it must not be
null and must contain at least one element. |
static void |
Assert.notEmpty(Collection<?> collection,
Supplier<String> messageSupplier)
Assert that a collection contains elements; that is, it must not be
null and must contain at least one element. |
static void |
Assert.notEmpty(Map<?,?> map)
Deprecated.
as of 4.3.7, in favor of
Assert.notEmpty(Map, String) |
static void |
Assert.notEmpty(Map<?,?> map,
String message)
Assert that a Map contains entries; that is, it must not be
null
and must contain at least one entry. |
static void |
Assert.notEmpty(Map<?,?> map,
Supplier<String> messageSupplier)
Assert that a Map contains entries; that is, it must not be
null
and must contain at least one entry. |
static void |
Assert.notEmpty(Object[] array)
Deprecated.
as of 4.3.7, in favor of
Assert.notEmpty(Object[], String) |
static void |
Assert.notEmpty(Object[] array,
String message)
Assert that an array contains elements; that is, it must not be
null and must contain at least one element. |
static void |
Assert.notEmpty(Object[] array,
Supplier<String> messageSupplier)
Assert that an array contains elements; that is, it must not be
null and must contain at least one element. |
static void |
Assert.notNull(Object object)
Deprecated.
as of 4.3.7, in favor of
Assert.notNull(Object, String) |
static void |
Assert.notNull(Object object,
String message)
Assert that an object is not
null . |
static void |
Assert.notNull(Object object,
Supplier<String> messageSupplier)
Assert that an object is not
null . |
static String |
ObjectUtils.nullSafeClassName(Object obj)
Determine the class name for the given object.
|
static boolean |
ObjectUtils.nullSafeEquals(Object o1,
Object o2)
Determine if the given objects are equal, returning
true if
both are null or false if only one is null . |
static boolean |
ObjectUtils.nullSafeEquals(Object o1,
Object o2)
Determine if the given objects are equal, returning
true if
both are null or false if only one is null . |
static int |
ObjectUtils.nullSafeHashCode(boolean[] array)
Return a hash code based on the contents of the specified array.
|
static int |
ObjectUtils.nullSafeHashCode(byte[] array)
Return a hash code based on the contents of the specified array.
|
static int |
ObjectUtils.nullSafeHashCode(char[] array)
Return a hash code based on the contents of the specified array.
|
static int |
ObjectUtils.nullSafeHashCode(double[] array)
Return a hash code based on the contents of the specified array.
|
static int |
ObjectUtils.nullSafeHashCode(float[] array)
Return a hash code based on the contents of the specified array.
|
static int |
ObjectUtils.nullSafeHashCode(int[] array)
Return a hash code based on the contents of the specified array.
|
static int |
ObjectUtils.nullSafeHashCode(long[] array)
Return a hash code based on the contents of the specified array.
|
static int |
ObjectUtils.nullSafeHashCode(Object obj)
Return as hash code for the given object; typically the value of
Object#hashCode() }. |
static int |
ObjectUtils.nullSafeHashCode(Object[] array)
Return a hash code based on the contents of the specified array.
|
static int |
ObjectUtils.nullSafeHashCode(short[] array)
Return a hash code based on the contents of the specified array.
|
static String |
ObjectUtils.nullSafeToString(boolean[] array)
Return a String representation of the contents of the specified array.
|
static String |
ObjectUtils.nullSafeToString(byte[] array)
Return a String representation of the contents of the specified array.
|
static String |
ObjectUtils.nullSafeToString(char[] array)
Return a String representation of the contents of the specified array.
|
static String |
ObjectUtils.nullSafeToString(double[] array)
Return a String representation of the contents of the specified array.
|
static String |
ObjectUtils.nullSafeToString(float[] array)
Return a String representation of the contents of the specified array.
|
static String |
ObjectUtils.nullSafeToString(int[] array)
Return a String representation of the contents of the specified array.
|
static String |
ObjectUtils.nullSafeToString(long[] array)
Return a String representation of the contents of the specified array.
|
static String |
ObjectUtils.nullSafeToString(Object obj)
Return a String representation of the specified Object.
|
static String |
ObjectUtils.nullSafeToString(Object[] array)
Return a String representation of the contents of the specified array.
|
static String |
ObjectUtils.nullSafeToString(short[] array)
Return a String representation of the contents of the specified array.
|
static ClassLoader |
ClassUtils.overrideThreadContextClassLoader(ClassLoader classLoaderToUse)
Override the thread context ClassLoader with the environment's bean ClassLoader
if necessary, i.e.
|
protected String |
PropertyPlaceholderHelper.parseStringValue(String value,
PropertyPlaceholderHelper.PlaceholderResolver placeholderResolver,
Set<String> visitedPlaceholders) |
V |
ConcurrentReferenceHashMap.put(K key,
V value) |
V |
ConcurrentReferenceHashMap.put(K key,
V value) |
V |
LinkedCaseInsensitiveMap.put(String key,
V value) |
V |
ConcurrentReferenceHashMap.putIfAbsent(K key,
V value) |
V |
ConcurrentReferenceHashMap.putIfAbsent(K key,
V value) |
V |
LinkedCaseInsensitiveMap.putIfAbsent(String key,
V value) |
static String |
StringUtils.quote(String str)
Quote the given
String with single quotes. |
static Object |
StringUtils.quoteIfString(Object obj)
Turn the given Object into a
String with single quotes
if it is a String ; keeping the Object as-is else. |
static String |
StringUtils.replace(String inString,
String oldPattern,
String newPattern)
Replace all occurrences of a substring within a string with another string.
|
static Class<?> |
ClassUtils.resolveClassName(String className,
ClassLoader classLoader)
Resolve the given class name into a Class instance.
|
static Class<?> |
ClassUtils.resolvePrimitiveClassName(String name)
Resolve the given class name as primitive class, if appropriate,
according to the JVM's naming rules for primitive classes.
|
void |
MultiValueMap.set(K key,
V value)
Set the given single value under the given key.
|
static void |
ReflectionUtils.setField(Field field,
Object target,
Object value)
Set the field represented by the supplied field object on
the specified target object to the specified
value . |
static void |
ReflectionUtils.setField(Field field,
Object target,
Object value)
Set the field represented by the supplied field object on
the specified target object to the specified
value . |
void |
AntPathMatcher.setPathSeparator(String pathSeparator)
Set the path separator to use for pattern parsing.
|
V |
ConcurrentReferenceHashMap.Entry.setValue(V value) |
static String[] |
StringUtils.split(String toSplit,
String delimiter)
Split a
String at the first occurrence of the delimiter. |
static String[] |
StringUtils.split(String toSplit,
String delimiter)
Split a
String at the first occurrence of the delimiter. |
static Properties |
StringUtils.splitArrayElementsIntoProperties(String[] array,
String delimiter,
String charsToDelete)
Take an array of strings and split each element based on the given delimiter.
|
static boolean |
StringUtils.startsWithIgnoreCase(String str,
String prefix)
Test if the given
String starts with the specified prefix,
ignoring upper/lower case. |
static boolean |
StringUtils.startsWithIgnoreCase(String str,
String prefix)
Test if the given
String starts with the specified prefix,
ignoring upper/lower case. |
static <E> Iterator<E> |
CollectionUtils.toIterator(Enumeration<E> enumeration)
Adapt an
Enumeration to an Iterator . |
static String[] |
StringUtils.tokenizeToStringArray(String str,
String delimiters)
|
static String[] |
StringUtils.tokenizeToStringArray(String str,
String delimiters,
boolean trimTokens,
boolean ignoreEmptyTokens)
|
static Object[] |
ObjectUtils.toObjectArray(Object source)
Convert the given array (which may be a primitive array) to an
object array (if necessary of primitive wrapper objects).
|
static String[] |
StringUtils.toStringArray(Collection<String> collection)
Copy the given
Collection into a String array. |
static String[] |
StringUtils.toStringArray(Enumeration<String> enumeration)
Copy the given
Enumeration into a String array. |
static Object |
ObjectUtils.unwrapOptional(Object obj)
Unwrap the given object which is potentially a
Optional . |
Constructor and Description |
---|
Entry(K key,
V value) |
Entry(K key,
V value) |
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).
|
PropertyPlaceholderHelper(String placeholderPrefix,
String placeholderSuffix,
String valueSeparator,
boolean ignoreUnresolvablePlaceholders)
Creates a new
PropertyPlaceholderHelper that uses the supplied prefix and suffix. |
Copyright © 2020. All rights reserved.