Uses of Annotation Interface
org.springframework.lang.Nullable
Package
Description
Support classes for components that contribute generated code equivalent to a
runtime behavior.
Support for registering the need for reflection, resources, java
serialization and proxies at runtime.
Convenience classes for using runtime hints.
Support for generating GraalVM native configuration from runtime hints.
Provides basic classes for exception handling and version detection,
and other core helpers that are not specific to any part of the framework.
Core support package for annotations, meta-annotations, and merged
annotations with attribute overrides.
Type conversion system API.
SPI to implement Converters for the type conversion system.
Default implementation of the type conversion system.
Spring's environment abstraction consisting of bean definition
profile and hierarchical property source support.
Generic abstraction for (file-based) resources, used throughout the framework.
Generic abstraction for working with byte buffer implementations.
Support classes for Spring's resource abstraction.
Useful delegates for Spring's logging conventions.
Support package for recording metrics during application startup.
Root package for Spring's serializer interfaces and implementations.
Support for styling values as Strings, with ToStringCreator as central class.
This package defines Spring's core TaskExecutor abstraction,
and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
Support classes for Spring's TaskExecutor abstraction.
Core support package for type introspection.
Support classes for reading annotation and class-level metadata.
Core support package for type filtering (e.g.
Miscellaneous utility classes, such as utilities for working with strings,
classes, collections, reflection, etc.
Useful generic
java.util.Comparator
implementations,
such as an invertible comparator and a compound comparator.Useful generic
java.util.concurrent.Future
extensions.Useful generic
java.util.function
helper classes.Useful unit data types.
Miscellaneous utility classes for XML parsing and transformation,
such as error handlers that log warnings via Commons Logging.
-
Uses of Nullable in org.springframework.aot.generate
Modifier and TypeMethodDescriptionorg.springframework.javapoet.CodeBlock
MethodReference.ArgumentCodeGenerator.generateCode
(org.springframework.javapoet.TypeName argumentType) Generate the code for the given argument type.GeneratedClass.getEnclosingClass()
Return the enclosingGeneratedClass
ornull
if this instance represents a top-level class.InMemoryGeneratedFiles.getGeneratedFile
(GeneratedFiles.Kind kind, String path) Return theInputStreamSource
of specified file.InMemoryGeneratedFiles.getGeneratedFileContent
(GeneratedFiles.Kind kind, String path) Return the content of the specified file.Modifier and TypeMethodDescriptionorg.springframework.javapoet.ClassName
ClassNameGenerator.generateClassName
(String featureName, org.springframework.javapoet.ClassName target) Generate a uniqueClassName
based on the specifiedfeatureName
andtarget
.org.springframework.javapoet.CodeBlock
DefaultMethodReference.toInvokeCodeBlock
(MethodReference.ArgumentCodeGenerator argumentCodeGenerator, org.springframework.javapoet.ClassName targetClassName) org.springframework.javapoet.CodeBlock
MethodReference.toInvokeCodeBlock
(MethodReference.ArgumentCodeGenerator argumentCodeGenerator, org.springframework.javapoet.ClassName targetClassName) Return this method reference as aCodeBlock
using the specifiedMethodReference.ArgumentCodeGenerator
.ModifierConstructorDescriptionDefaultMethodReference
(org.springframework.javapoet.MethodSpec method, org.springframework.javapoet.ClassName declaringClass) -
Uses of Nullable in org.springframework.aot.hint
Modifier and TypeMethodDescriptionAbstractTypeReference.getEnclosingType()
TypeReference.getEnclosingType()
Return the enclosing type reference, ornull
if this type reference does not have an enclosing type.ConditionalHint.getReachableType()
Return the type that should be reachable for this hint to apply, ornull
if this hint should always been applied.JavaSerializationHint.getReachableType()
JdkProxyHint.getReachableType()
ResourceBundleHint.getReachableType()
ResourcePatternHint.getReachableType()
TypeHint.getReachableType()
ReflectionHints.getTypeHint
(Class<?> type) Return the reflection hints for the specified type.ReflectionHints.getTypeHint
(TypeReference type) Return the reflection hints for the type defined by the specifiedTypeReference
.Modifier and TypeMethodDescriptionResourcePatternHints.Builder.includes
(TypeReference reachableType, String... includes) Include resources matching the specified patterns.void
RuntimeHintsRegistrar.registerHints
(RuntimeHints hints, ClassLoader classLoader) Contribute hints to the givenRuntimeHints
instance.ResourceHints.registerPattern
(Consumer<ResourcePatternHints.Builder> resourceHint) Register that the resources matching the specified pattern should be made available at runtime.ResourceHints.registerPatternIfPresent
(ClassLoader classLoader, String location, Consumer<ResourcePatternHints.Builder> resourceHint) Register a pattern if the givenlocation
is available on the classpath.ResourceHints.registerResourceBundle
(String baseName, Consumer<ResourceBundleHint.Builder> resourceHint) Register that the resource bundle with the specified base name should be made available at runtime.SerializationHints.registerType
(Class<? extends Serializable> type, Consumer<JavaSerializationHint.Builder> serializationHint) Register that the specified type need to be serialized using java serialization.SerializationHints.registerType
(TypeReference type, Consumer<JavaSerializationHint.Builder> serializationHint) Register that the type defined by the specifiedTypeReference
need to be serialized using java serialization.ReflectionHints.registerTypeIfPresent
(ClassLoader classLoader, String typeName, Consumer<TypeHint.Builder> typeHint) Register or customize reflection hints for the specified type if it is available using the specifiedClassLoader
.ReflectionHints.registerTypeIfPresent
(ClassLoader classLoader, String typeName, MemberCategory... memberCategories) Register or customize reflection hints for the specified type if it is available using the specifiedClassLoader
.ModifierConstructorDescriptionprotected
AbstractTypeReference
(String packageName, String simpleName, TypeReference enclosingType) -
Uses of Nullable in org.springframework.aot.hint.support
Modifier and TypeMethodDescriptionvoid
FilePatternResourceHintsRegistrar.registerHints
(ResourceHints hints, ClassLoader classLoader) -
Uses of Nullable in org.springframework.aot.nativex
ModifierConstructorDescriptionFileNativeConfigurationWriter
(Path basePath, String groupId, String artifactId) FileNativeConfigurationWriter
(Path basePath, String groupId, String artifactId) -
Uses of Nullable in org.springframework.core
Modifier and TypeMethodDescriptionstatic String
NestedExceptionUtils.buildMessage
(String message, Throwable cause) Deprecated.as of 6.0, in favor of custom exception messages with selective inclusion of cause messagesprotected Integer
Find an order value indicated by the given object.ReactiveAdapterRegistry.getAdapter
(Class<?> reactiveType) Get the adapter for the given reactive type.ReactiveAdapterRegistry.getAdapter
(Class<?> reactiveType, Object source) Get the adapter for the given reactive type.AttributeAccessor.getAttribute
(String name) Get the value of the attribute identified byname
.AttributeAccessorSupport.getAttribute
(String name) Constructor<?>
MethodParameter.getConstructor()
Return the wrapped Constructor, if any.protected ClassLoader
ConfigurableObjectInputStream.getFallbackClassLoader()
Return the fallback ClassLoader to use when no ClassLoader was specified and ObjectInputStream's own default class loader failed.MethodParameter.getMethod()
Return the wrapped Method, if any.<A extends Annotation>
AMethodParameter.getMethodAnnotation
(Class<A> annotationType) Return the method/constructor annotation of the given type, if available.OrderComparator.OrderSourceProvider.getOrderSource
(Object obj) Return an order source for the specified object, i.e.<A extends Annotation>
AMethodParameter.getParameterAnnotation
(Class<A> annotationType) Return the parameter annotation of the given type, if available.MethodParameter.getParameterName()
Return the name of the method/constructor parameter.String[]
KotlinReflectionParameterNameDiscoverer.getParameterNames
(Constructor<?> ctor) String[]
KotlinReflectionParameterNameDiscoverer.getParameterNames
(Method method) String[]
LocalVariableTableParameterNameDiscoverer.getParameterNames
(Constructor<?> ctor) Deprecated, for removal: This API element is subject to removal in a future version.String[]
LocalVariableTableParameterNameDiscoverer.getParameterNames
(Method method) Deprecated, for removal: This API element is subject to removal in a future version.String[]
ParameterNameDiscoverer.getParameterNames
(Constructor<?> ctor) Return parameter names for a constructor, ornull
if they cannot be determined.String[]
ParameterNameDiscoverer.getParameterNames
(Method method) Return parameter names for a method, ornull
if they cannot be determined.String[]
PrioritizedParameterNameDiscoverer.getParameterNames
(Constructor<?> ctor) String[]
PrioritizedParameterNameDiscoverer.getParameterNames
(Method method) String[]
StandardReflectionParameterNameDiscoverer.getParameterNames
(Constructor<?> ctor) String[]
StandardReflectionParameterNameDiscoverer.getParameterNames
(Method method) OrderComparator.getPriority
(Object obj) Determine a priority value for the given object, if any.static String
SpringProperties.getProperty
(String key) Retrieve the property value for the given key, checking local Spring properties first and falling back to JVM-level system properties.Class<?>
ResolvableType.getRawClass()
Return the underlying JavaClass
being managed, if available; otherwisenull
.ResolvableTypeProvider.getResolvableType()
Return theResolvableType
describing this instance (ornull
if some sort of default should be applied instead).NestedCheckedException.getRootCause()
Retrieve the innermost cause of this exception, if any.static Throwable
NestedExceptionUtils.getRootCause
(Throwable original) Retrieve the innermost cause of the given exception, if any.NestedRuntimeException.getRootCause()
Retrieve the innermost cause of this exception, if any.MethodParameter.getTypeIndexForCurrentLevel()
Return the type index for the current nesting level.MethodParameter.getTypeIndexForLevel
(int nestingLevel) Return the type index for the specified nesting level.static String
SpringVersion.getVersion()
Return the full version string of the present Spring codebase, ornull
if it cannot be determined.Perform a lookup on the given method and return associated metadata, if any.protected byte[]
OverridingClassLoader.loadBytesForClass
(String name) Load the defining bytes for the given class, to be turned into a Class object through aClassLoader.defineClass(byte[], int, int)
call.protected Class<?>
OverridingClassLoader.loadClassForOverriding
(String name) Load the specified class for overriding purposes in this ClassLoader.protected InputStream
OverridingClassLoader.openStreamForClass
(String name) Open an InputStream for the specified class.AttributeAccessor.removeAttribute
(String name) Remove the attribute identified byname
and return its value.AttributeAccessorSupport.removeAttribute
(String name) Class<?>
ResolvableType.resolve()
Resolve this type to aClass
, returningnull
if the type cannot be resolved.Class<?>
ResolvableType.resolveGeneric
(int... indexes) static Class<?>
GenericTypeResolver.resolveReturnTypeArgument
(Method method, Class<?> genericIfc) Resolve the single type argument of the given generic interface against the given target method which is assumed to return the given interface or an implementation of it.static Class<?>
GenericTypeResolver.resolveTypeArgument
(Class<?> clazz, Class<?> genericIfc) Resolve the single type argument of the given generic interface against the given target class which is assumed to implement the generic interface and possibly declare a concrete type for its type variable.static Class<?>[]
GenericTypeResolver.resolveTypeArguments
(Class<?> clazz, Class<?> genericIfc) Resolve the type arguments of the given generic interface against the given target class which is assumed to implement the generic interface and possibly declare concrete types for its type variables.Modifier and TypeMethodDescriptionstatic String
NestedExceptionUtils.buildMessage
(String message, Throwable cause) Deprecated.as of 6.0, in favor of custom exception messages with selective inclusion of cause messagesstatic String
NestedExceptionUtils.buildMessage
(String message, Throwable cause) Deprecated.as of 6.0, in favor of custom exception messages with selective inclusion of cause messagesint
int
boolean
Check whether this exception contains an exception of the given type: either it is of the given class itself or it contains a nested cause of the given type.boolean
Check whether this exception contains an exception of the given type: either it is of the given class itself or it contains a nested cause of the given type.static <E> Collection<E>
CollectionFactory.createApproximateCollection
(Object collection, int capacity) Create the most approximate collection for the given collection.static <K,
V> Map<K, V> CollectionFactory.createApproximateMap
(Object map, int capacity) Create the most approximate map for the given map.static <E> Collection<E>
CollectionFactory.createCollection
(Class<?> collectionType, Class<?> elementType, int capacity) Create the most appropriate collection for the given collection type.static <K,
V> Map<K, V> Create the most appropriate map for the given map type.boolean
boolean
boolean
boolean
boolean
boolean
static ResolvableType
Return aResolvableType
for the specifiedClass
, using the full generic type information for assignability checks.static ResolvableType
Return aResolvableType
for the specifiedField
with a given implementation and the given nesting level.static ResolvableType
ResolvableType.forField
(Field field, ResolvableType implementationType) Return aResolvableType
for the specifiedField
with a given implementation.static ResolvableType
ResolvableType.forInstance
(Object instance) Return aResolvableType
for the specified instance.static ResolvableType
ResolvableType.forMethodParameter
(MethodParameter methodParameter, Type targetType) Return aResolvableType
for the specifiedMethodParameter
, overriding the target type to resolve with a specific given type.static ResolvableType
ResolvableType.forMethodParameter
(MethodParameter methodParameter, ResolvableType implementationType) Return aResolvableType
for the specifiedMethodParameter
with a given implementation type.static ResolvableType
ResolvableType.forRawClass
(Class<?> clazz) Return aResolvableType
for the specifiedClass
, doing assignability checks against the raw class only (analogous toClass.isAssignableFrom(java.lang.Class<?>)
, which this serves as a wrapper for).static ResolvableType
Return aResolvableType
for the specifiedType
.static ResolvableType
ResolvableType.forType
(Type type, ResolvableType owner) Return aResolvableType
for the specifiedType
backed by the given owner type.static ResolvableType
ResolvableType.forType
(Type type, ResolvableType owner) Return aResolvableType
for the specifiedType
backed by the given owner type.ReactiveAdapterRegistry.getAdapter
(Class<?> reactiveType, Object source) Get the adapter for the given reactive type.ReactiveAdapterRegistry.getAdapter
(Class<?> reactiveType, Object source) Get the adapter for the given reactive type.ResolvableType.getGeneric
(int... indexes) Return aResolvableType
representing the generic parameter for the given indexes.Return all names of the given group of constants.Constants.getNamesForSuffix
(String nameSuffix) Return all names of the given group of constants.Return aResolvableType
for the specified nesting level.protected int
Determine the order value for the given object.static Throwable
NestedExceptionUtils.getRootCause
(Throwable original) Retrieve the innermost cause of the given exception, if any.Return all values of the given group of constants.Constants.getValuesForSuffix
(String nameSuffix) Return all values of the given group of constants.static String
Conventions.getVariableNameForReturnType
(Method method, Class<?> resolvedType, Object value) Determine the conventional variable name for the return type of the given method, taking the generic collection type, if any, into account, falling back on the given return value if the method declaration is not specific enough, e.g.static String
Conventions.getVariableNameForReturnType
(Method method, Object value) Determine the conventional variable name for the return type of the given method, taking the generic collection type, if any, into account, falling back on the given actual return value if the method declaration is not specific enough, e.g.void
MethodParameter.initParameterNameDiscovery
(ParameterNameDiscoverer parameterNameDiscoverer) Initialize parameter name discovery for this method parameter.static boolean
CollectionFactory.isApproximableCollectionType
(Class<?> collectionType) Determine whether the given collection type is an approximable type, i.e.static boolean
CollectionFactory.isApproximableMapType
(Class<?> mapType) Determine whether the given map type is an approximable type, i.e.boolean
ResolvableType.isInstance
(Object obj) Determine whether the given object is an instance of thisResolvableType
.Return a variant of thisMethodParameter
which points to the same parameter but one nesting level deeper.default Class<?>
SmartClassLoader.publicDefineClass
(String name, byte[] b, ProtectionDomain protectionDomain) Define a custom class (typically a CGLIB proxy class) in this class loader.static Type
GenericTypeResolver.resolveType
(Type genericType, Class<?> contextClass) Resolve the given generic type against the given context class, substituting type variables as far as possible.void
AttributeAccessor.setAttribute
(String name, Object value) Set the attribute defined byname
to the suppliedvalue
.void
AttributeAccessorSupport.setAttribute
(String name, Object value) static void
SpringProperties.setProperty
(String key, String value) Programmatically set a local property, overriding an entry in thespring.properties
file (if any).Look up the given value within the given group of constants.Constants.toCodeForSuffix
(Object value, String nameSuffix) Look up the given value within the given group of constants.<T> Publisher<T>
ReactiveAdapter.toPublisher
(Object source) Adapt the given instance to a Reactive StreamsPublisher
.MethodParameter.withContainingClass
(Class<?> containingClass) Return a variant of thisMethodParameter
which refers to the given containing class.ModifierConstructorDescriptionConfigurableObjectInputStream
(InputStream in, ClassLoader classLoader) Create a new ConfigurableObjectInputStream for the given InputStream and ClassLoader.ConfigurableObjectInputStream
(InputStream in, ClassLoader classLoader, boolean acceptProxyClasses) Create a new ConfigurableObjectInputStream for the given InputStream and ClassLoader.DecoratingClassLoader
(ClassLoader parent) Create a new DecoratingClassLoader using the given parent ClassLoader for delegation.MethodClassKey
(Method method, Class<?> targetClass) Create a key object for the given method and target class.NestedCheckedException
(String msg, Throwable cause) Construct aNestedCheckedException
with the specified detail message and nested exception.NestedCheckedException
(String msg, Throwable cause) Construct aNestedCheckedException
with the specified detail message and nested exception.NestedRuntimeException
(String msg, Throwable cause) Construct aNestedRuntimeException
with the specified detail message and nested exception.NestedRuntimeException
(String msg, Throwable cause) Construct aNestedRuntimeException
with the specified detail message and nested exception.OverridingClassLoader
(ClassLoader parent) Create a new OverridingClassLoader for the given ClassLoader.OverridingClassLoader
(ClassLoader parent, ClassLoader overrideDelegate) Create a new OverridingClassLoader for the given ClassLoader.OverridingClassLoader
(ClassLoader parent, ClassLoader overrideDelegate) Create a new OverridingClassLoader for the given ClassLoader. -
Uses of Nullable in org.springframework.core.annotation
Modifier and TypeMethodDescriptionClass<? extends Annotation>
AnnotationAttributes.annotationType()
Get the type of annotation represented by thisAnnotationAttributes
.static <A extends Annotation>
AAnnotationUtils.findAnnotation
(Class<?> clazz, Class<A> annotationType) Find a singleAnnotation
ofannotationType
on the suppliedClass
, traversing its interfaces, annotations, and superclasses if the annotation is not directly present on the given class itself.static <A extends Annotation>
AAnnotationUtils.findAnnotation
(AnnotatedElement annotatedElement, Class<A> annotationType) static <A extends Annotation>
AAnnotationUtils.findAnnotation
(Method method, Class<A> annotationType) Find a singleAnnotation
ofannotationType
on the suppliedMethod
, traversing its super methods (i.e.static Class<?>
AnnotationUtils.findAnnotationDeclaringClass
(Class<? extends Annotation> annotationType, Class<?> clazz) Deprecated.as of 5.2 since it is superseded by theMergedAnnotations
APIstatic Class<?>
AnnotationUtils.findAnnotationDeclaringClassForTypes
(List<Class<? extends Annotation>> annotationTypes, Class<?> clazz) Deprecated.as of 5.2 since it is superseded by theMergedAnnotations
APIstatic <A extends Annotation>
AAnnotatedElementUtils.findMergedAnnotation
(AnnotatedElement element, Class<A> annotationType) Find the first annotation of the specifiedannotationType
within the annotation hierarchy above the suppliedelement
, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy, and synthesize the result back into an annotation of the specifiedannotationType
.static AnnotationAttributes
AnnotatedElementUtils.findMergedAnnotationAttributes
(AnnotatedElement element, Class<? extends Annotation> annotationType, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Find the first annotation of the specifiedannotationType
within the annotation hierarchy above the suppliedelement
and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributes
AnnotatedElementUtils.findMergedAnnotationAttributes
(AnnotatedElement element, String annotationName, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Find the first annotation of the specifiedannotationName
within the annotation hierarchy above the suppliedelement
and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.protected Integer
static AnnotationAttributes
Return anAnnotationAttributes
instance based on the given map.static MultiValueMap<String,
Object> AnnotatedElementUtils.getAllAnnotationAttributes
(AnnotatedElement element, String annotationName) Get the annotation attributes of all annotations of the specifiedannotationName
in the annotation hierarchy above the suppliedAnnotatedElement
and store the results in aMultiValueMap
.static MultiValueMap<String,
Object> AnnotatedElementUtils.getAllAnnotationAttributes
(AnnotatedElement element, String annotationName, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Get the annotation attributes of all annotations of the specifiedannotationName
in the annotation hierarchy above the suppliedAnnotatedElement
and store the results in aMultiValueMap
.static <A extends Annotation>
AAnnotationUtils.getAnnotation
(Annotation annotation, Class<A> annotationType) Get a singleAnnotation
ofannotationType
from the supplied annotation: either the given annotation itself or a direct meta-annotation thereof.static <A extends Annotation>
AAnnotationUtils.getAnnotation
(AnnotatedElement annotatedElement, Class<A> annotationType) Get a singleAnnotation
ofannotationType
from the suppliedAnnotatedElement
, where the annotation is either present or meta-present on theAnnotatedElement
.static <A extends Annotation>
AAnnotationUtils.getAnnotation
(Method method, Class<A> annotationType) Get a singleAnnotation
ofannotationType
from the suppliedMethod
, where the annotation is either present or meta-present on the method.static Annotation[]
AnnotationUtils.getAnnotations
(AnnotatedElement annotatedElement) Deprecated.as of 5.2 since it is superseded by theMergedAnnotations
APIstatic Annotation[]
AnnotationUtils.getAnnotations
(Method method) Deprecated.as of 5.2 since it is superseded by theMergedAnnotations
APIstatic Object
AnnotationUtils.getDefaultValue
(Annotation annotation) Retrieve the default value of thevalue
attribute of a single-element Annotation, given an annotation instance.static Object
AnnotationUtils.getDefaultValue
(Annotation annotation, String attributeName) Retrieve the default value of a named attribute, given an annotation instance.static Object
AnnotationUtils.getDefaultValue
(Class<? extends Annotation> annotationType) Retrieve the default value of thevalue
attribute of a single-element Annotation, given theannotation type
.static Object
AnnotationUtils.getDefaultValue
(Class<? extends Annotation> annotationType, String attributeName) Retrieve the default value of a named attribute, given theannotation type
.static <A extends Annotation>
AAnnotatedElementUtils.getMergedAnnotation
(AnnotatedElement element, Class<A> annotationType) Get the first annotation of the specifiedannotationType
within the annotation hierarchy above the suppliedelement
, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy, and synthesize the result back into an annotation of the specifiedannotationType
.static AnnotationAttributes
AnnotatedElementUtils.getMergedAnnotationAttributes
(AnnotatedElement element, Class<? extends Annotation> annotationType) Get the first annotation of the specifiedannotationType
within the annotation hierarchy above the suppliedelement
and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributes
AnnotatedElementUtils.getMergedAnnotationAttributes
(AnnotatedElement element, String annotationName) Get the first annotation of the specifiedannotationName
within the annotation hierarchy above the suppliedelement
and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributes
AnnotatedElementUtils.getMergedAnnotationAttributes
(AnnotatedElement element, String annotationName, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Get the first annotation of the specifiedannotationName
within the annotation hierarchy above the suppliedelement
and merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.MergedAnnotation.getMetaSource()
Get the source of the meta-annotation, ornull
if the annotation is not meta-present.static Integer
Return the order on the specifiedtype
.static Integer
Return the order on the specifiedtype
, or the specified default value if none can be found.static Integer
OrderUtils.getOrder
(AnnotatedElement element) Return the order declared on the specifiedelement
.AnnotationAwareOrderComparator.getPriority
(Object obj) This implementation retrieves an @jakarta.annotation.Priority
value, allowing for additional semantics over the regular @Order
annotation: typically, selecting one object over another in case of multiple matches but only one object to be returned.static Integer
OrderUtils.getPriority
(Class<?> type) Return the value of thejakarta.annotation.Priority
annotation declared on the specified type, ornull
if none.MergedAnnotation.getSource()
Get the source that ultimately declared the root annotation, ornull
if the source is not known.static Object
AnnotationUtils.getValue
(Annotation annotation) Retrieve the value of thevalue
attribute of a single-element Annotation, given an annotation instance.static Object
AnnotationUtils.getValue
(Annotation annotation, String attributeName) Retrieve the value of a named attribute, given an annotation instance.Modifier and TypeMethodDescriptionboolean
static <A extends Annotation>
AAnnotationUtils.findAnnotation
(Class<?> clazz, Class<A> annotationType) Find a singleAnnotation
ofannotationType
on the suppliedClass
, traversing its interfaces, annotations, and superclasses if the annotation is not directly present on the given class itself.static <A extends Annotation>
AAnnotationUtils.findAnnotation
(AnnotatedElement annotatedElement, Class<A> annotationType) static <A extends Annotation>
AAnnotationUtils.findAnnotation
(Method method, Class<A> annotationType) Find a singleAnnotation
ofannotationType
on the suppliedMethod
, traversing its super methods (i.e.static Class<?>
AnnotationUtils.findAnnotationDeclaringClass
(Class<? extends Annotation> annotationType, Class<?> clazz) Deprecated.as of 5.2 since it is superseded by theMergedAnnotations
APIstatic Class<?>
AnnotationUtils.findAnnotationDeclaringClassForTypes
(List<Class<? extends Annotation>> annotationTypes, Class<?> clazz) Deprecated.as of 5.2 since it is superseded by theMergedAnnotations
APIstatic <A extends Annotation>
Set<A>AnnotatedElementUtils.findMergedRepeatableAnnotations
(AnnotatedElement element, Class<A> annotationType, Class<? extends Annotation> containerType) Find all repeatable annotations of the specifiedannotationType
within the annotation hierarchy above the suppliedelement
; and for each annotation found, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy and synthesize the results back into an annotation of the specifiedannotationType
.static <A extends Annotation>
MergedAnnotation<A>Create a newMergedAnnotation
instance from the specified annotation.static AnnotationAttributes
Return anAnnotationAttributes
instance based on the given map.<A extends Annotation>
MergedAnnotation<A>MergedAnnotations.get
(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate) Get the nearest matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()
if none is present.<A extends Annotation>
MergedAnnotation<A>MergedAnnotations.get
(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) Get a matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()
if none is present.<A extends Annotation>
MergedAnnotation<A>MergedAnnotations.get
(Class<A> annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) Get a matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()
if none is present.<A extends Annotation>
MergedAnnotation<A>MergedAnnotations.get
(String annotationType, Predicate<? super MergedAnnotation<A>> predicate) Get the nearest matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()
if none is present.<A extends Annotation>
MergedAnnotation<A>MergedAnnotations.get
(String annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) Get a matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()
if none is present.<A extends Annotation>
MergedAnnotation<A>MergedAnnotations.get
(String annotationType, Predicate<? super MergedAnnotation<A>> predicate, MergedAnnotationSelector<A> selector) Get a matching annotation or meta-annotation of the specified type, orMergedAnnotation.missing()
if none is present.static AnnotationAttributes
AnnotationUtils.getAnnotationAttributes
(AnnotatedElement annotatedElement, Annotation annotation) Retrieve the given annotation's attributes as anAnnotationAttributes
map.static AnnotationAttributes
AnnotationUtils.getAnnotationAttributes
(AnnotatedElement annotatedElement, Annotation annotation, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Retrieve the given annotation's attributes as anAnnotationAttributes
map.static <A extends Annotation>
Set<A>AnnotationUtils.getDeclaredRepeatableAnnotations
(AnnotatedElement annotatedElement, Class<A> annotationType, Class<? extends Annotation> containerAnnotationType) Deprecated.as of 5.2 since it is superseded by theMergedAnnotations
APIstatic Object
AnnotationUtils.getDefaultValue
(Annotation annotation, String attributeName) Retrieve the default value of a named attribute, given an annotation instance.static Object
AnnotationUtils.getDefaultValue
(Annotation annotation, String attributeName) Retrieve the default value of a named attribute, given an annotation instance.static Object
AnnotationUtils.getDefaultValue
(Class<? extends Annotation> annotationType, String attributeName) Retrieve the default value of a named attribute, given theannotation type
.static Object
AnnotationUtils.getDefaultValue
(Class<? extends Annotation> annotationType, String attributeName) Retrieve the default value of a named attribute, given theannotation type
.static <A extends Annotation>
Set<A>AnnotatedElementUtils.getMergedRepeatableAnnotations
(AnnotatedElement element, Class<A> annotationType, Class<? extends Annotation> containerType) Get all repeatable annotations of the specifiedannotationType
within the annotation hierarchy above the suppliedelement
; and for each annotation found, merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy and synthesize the results back into an annotation of the specifiedannotationType
.static Integer
Return the order on the specifiedtype
, or the specified default value if none can be found.static <A extends Annotation>
Set<A>AnnotationUtils.getRepeatableAnnotations
(AnnotatedElement annotatedElement, Class<A> annotationType, Class<? extends Annotation> containerAnnotationType) Deprecated.as of 5.2 since it is superseded by theMergedAnnotations
APIstatic Object
AnnotationUtils.getValue
(Annotation annotation, String attributeName) Retrieve the value of a named attribute, given an annotation instance.static Object
AnnotationUtils.getValue
(Annotation annotation, String attributeName) Retrieve the value of a named attribute, given an annotation instance.static boolean
AnnotationUtils.isAnnotationMetaPresent
(Class<? extends Annotation> annotationType, Class<? extends Annotation> metaAnnotationType) Deprecated.as of 5.2 since it is superseded by theMergedAnnotations
APIstatic boolean
AnnotationUtils.isInJavaLangAnnotationPackage
(Annotation annotation) Determine if the suppliedAnnotation
is defined in the core JDKjava.lang.annotation
package.static boolean
AnnotationUtils.isInJavaLangAnnotationPackage
(String annotationType) Determine if theAnnotation
with the supplied name is defined in the core JDKjava.lang.annotation
package.static boolean
AnnotationUtils.isSynthesizedAnnotation
(Annotation annotation) Determine if the suppliedAnnotation
has been synthesized by Spring (i.e.static <A extends Annotation>
MergedAnnotation<A>Create a newMergedAnnotation
instance of the specified annotation type with attribute values supplied by a map.static <A extends Annotation>
MergedAnnotation<A>MergedAnnotation.of
(ClassLoader classLoader, Object source, Class<A> annotationType, Map<String, ?> attributes) Create a newMergedAnnotation
instance of the specified annotation type with attribute values supplied by a map.static <A extends Annotation>
MergedAnnotation<A>MergedAnnotation.of
(ClassLoader classLoader, Object source, Class<A> annotationType, Map<String, ?> attributes) Create a newMergedAnnotation
instance of the specified annotation type with attribute values supplied by a map.static <A extends Annotation>
MergedAnnotation<A>MergedAnnotation.of
(ClassLoader classLoader, Object source, Class<A> annotationType, Map<String, ?> attributes) Create a newMergedAnnotation
instance of the specified annotation type with attribute values supplied by a map.static <A extends Annotation>
MergedAnnotation<A>MergedAnnotation.of
(AnnotatedElement source, Class<A> annotationType, Map<String, ?> attributes) Create a newMergedAnnotation
instance of the specified annotation type with attribute values supplied by a map.static <A extends Annotation>
MergedAnnotation<A>MergedAnnotation.of
(AnnotatedElement source, Class<A> annotationType, Map<String, ?> attributes) Create a newMergedAnnotation
instance of the specified annotation type with attribute values supplied by a map.static RepeatableContainers
RepeatableContainers.of
(Class<? extends Annotation> repeatable, Class<? extends Annotation> container) Create aRepeatableContainers
instance that uses predefined repeatable and container types.static void
AnnotationUtils.postProcessAnnotationAttributes
(Object annotatedElement, AnnotationAttributes attributes, boolean classValuesAsString) Post-process the suppliedAnnotationAttributes
, preserving nested annotations asAnnotation
instances.static void
AnnotationUtils.postProcessAnnotationAttributes
(Object annotatedElement, AnnotationAttributes attributes, boolean classValuesAsString) Post-process the suppliedAnnotationAttributes
, preserving nested annotations asAnnotation
instances.static <A extends Annotation>
AAnnotationUtils.synthesizeAnnotation
(A annotation, AnnotatedElement annotatedElement) Synthesize an annotation from the suppliedannotation
by wrapping it in a dynamic proxy that transparently enforces attribute alias semantics for annotation attributes that are annotated with@AliasFor
.static <A extends Annotation>
AAnnotationUtils.synthesizeAnnotation
(Map<String, Object> attributes, Class<A> annotationType, AnnotatedElement annotatedElement) Synthesize an annotation from the supplied map of annotation attributes by wrapping the map in a dynamic proxy that implements an annotation of the specifiedannotationType
and transparently enforces attribute alias semantics for annotation attributes that are annotated with@AliasFor
.ModifierConstructorDescriptionAnnotationAttributes
(String annotationType, ClassLoader classLoader) Create a new, emptyAnnotationAttributes
instance for the specifiedannotationType
. -
Uses of Nullable in org.springframework.core.codec
Modifier and TypeMethodDescriptiondefault T
Decoder.decode
(DataBuffer buffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) Decode a data buffer to an Object of type T.protected T
AbstractDataBufferDecoder.decodeDataBuffer
(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Deprecated.as of 5.2, please implementDecoder.decode(DataBuffer, ResolvableType, MimeType, Map)
insteadModifier and TypeMethodDescriptionboolean
AbstractDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
ByteArrayDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
ByteBufferDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
DataBufferDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
Decoder.canDecode
(ResolvableType elementType, MimeType mimeType) Whether the decoder supports the given target element type and the MIME type of the source stream.boolean
Netty5BufferDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
NettyByteBufDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
ResourceDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
StringDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
AbstractEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
ByteArrayEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
ByteBufferEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
CharSequenceEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
DataBufferEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
Encoder.canEncode
(ResolvableType elementType, MimeType mimeType) Whether the encoder supports the given source element type and the MIME type for the output stream.boolean
Netty5BufferEncoder.canEncode
(ResolvableType type, MimeType mimeType) boolean
NettyByteBufEncoder.canEncode
(ResolvableType type, MimeType mimeType) boolean
ResourceEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
ResourceRegionEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) reactor.core.publisher.Flux<T>
AbstractDataBufferDecoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<T>
AbstractDataBufferDecoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) byte[]
ByteArrayDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) byte[]
ByteArrayDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ByteBufferDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ByteBufferDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
DataBufferDecoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
DataBufferDecoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) DataBufferDecoder.decode
(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) DataBufferDecoder.decode
(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<T>
Decoder.decode
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBuffer
input stream into a Flux ofT
.reactor.core.publisher.Flux<T>
Decoder.decode
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBuffer
input stream into a Flux ofT
.default T
Decoder.decode
(DataBuffer buffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) Decode a data buffer to an Object of type T.default T
Decoder.decode
(DataBuffer buffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) Decode a data buffer to an Object of type T.io.netty5.buffer.Buffer
Netty5BufferDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) io.netty5.buffer.Buffer
Netty5BufferDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) io.netty.buffer.ByteBuf
NettyByteBufDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) io.netty.buffer.ByteBuf
NettyByteBufDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<Resource>
ResourceDecoder.decode
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<Resource>
ResourceDecoder.decode
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ResourceDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ResourceDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<String>
StringDecoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<String>
StringDecoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) StringDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) StringDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected T
AbstractDataBufferDecoder.decodeDataBuffer
(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Deprecated.as of 5.2, please implementDecoder.decode(DataBuffer, ResolvableType, MimeType, Map)
insteadprotected T
AbstractDataBufferDecoder.decodeDataBuffer
(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Deprecated.as of 5.2, please implementDecoder.decode(DataBuffer, ResolvableType, MimeType, Map)
insteadreactor.core.publisher.Mono<T>
AbstractDataBufferDecoder.decodeToMono
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>
AbstractDataBufferDecoder.decodeToMono
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>
AbstractDecoder.decodeToMono
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>
AbstractDecoder.decodeToMono
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>
Decoder.decodeToMono
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBuffer
input stream into a Mono ofT
.reactor.core.publisher.Mono<T>
Decoder.decodeToMono
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBuffer
input stream into a Mono ofT
.final reactor.core.publisher.Flux<DataBuffer>
AbstractSingleValueEncoder.encode
(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) final reactor.core.publisher.Flux<DataBuffer>
AbstractSingleValueEncoder.encode
(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected abstract reactor.core.publisher.Flux<DataBuffer>
AbstractSingleValueEncoder.encode
(T t, DataBufferFactory dataBufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) EncodeT
to an outputDataBuffer
stream.protected abstract reactor.core.publisher.Flux<DataBuffer>
AbstractSingleValueEncoder.encode
(T t, DataBufferFactory dataBufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) EncodeT
to an outputDataBuffer
stream.reactor.core.publisher.Flux<DataBuffer>
ByteArrayEncoder.encode
(Publisher<? extends byte[]> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
ByteArrayEncoder.encode
(Publisher<? extends byte[]> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
ByteBufferEncoder.encode
(Publisher<? extends ByteBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
ByteBufferEncoder.encode
(Publisher<? extends ByteBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
CharSequenceEncoder.encode
(Publisher<? extends CharSequence> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
CharSequenceEncoder.encode
(Publisher<? extends CharSequence> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
DataBufferEncoder.encode
(Publisher<? extends DataBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
DataBufferEncoder.encode
(Publisher<? extends DataBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
Encoder.encode
(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Encode a stream of Objects of typeT
into aDataBuffer
output stream.reactor.core.publisher.Flux<DataBuffer>
Encoder.encode
(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Encode a stream of Objects of typeT
into aDataBuffer
output stream.reactor.core.publisher.Flux<DataBuffer>
Netty5BufferEncoder.encode
(Publisher<? extends io.netty5.buffer.Buffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
Netty5BufferEncoder.encode
(Publisher<? extends io.netty5.buffer.Buffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
NettyByteBufEncoder.encode
(Publisher<? extends io.netty.buffer.ByteBuf> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
NettyByteBufEncoder.encode
(Publisher<? extends io.netty.buffer.ByteBuf> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected reactor.core.publisher.Flux<DataBuffer>
ResourceEncoder.encode
(Resource resource, DataBufferFactory bufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) protected reactor.core.publisher.Flux<DataBuffer>
ResourceEncoder.encode
(Resource resource, DataBufferFactory bufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
ResourceRegionEncoder.encode
(Publisher<? extends ResourceRegion> input, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
ResourceRegionEncoder.encode
(Publisher<? extends ResourceRegion> input, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ByteArrayEncoder.encodeValue
(byte[] bytes, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) ByteArrayEncoder.encodeValue
(byte[] bytes, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) ByteBufferEncoder.encodeValue
(ByteBuffer byteBuffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) ByteBufferEncoder.encodeValue
(ByteBuffer byteBuffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) CharSequenceEncoder.encodeValue
(CharSequence charSequence, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) CharSequenceEncoder.encodeValue
(CharSequence charSequence, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) DataBufferEncoder.encodeValue
(DataBuffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) DataBufferEncoder.encodeValue
(DataBuffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) default DataBuffer
Encoder.encodeValue
(T value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Encode an Object of type T to a data buffer.default DataBuffer
Encoder.encodeValue
(T value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Encode an Object of type T to a data buffer.Netty5BufferEncoder.encodeValue
(io.netty5.buffer.Buffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Netty5BufferEncoder.encodeValue
(io.netty5.buffer.Buffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) NettyByteBufEncoder.encodeValue
(io.netty.buffer.ByteBuf byteBuf, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) NettyByteBufEncoder.encodeValue
(io.netty.buffer.ByteBuf byteBuf, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) static String
Hints.getLogPrefix
(Map<String, Object> hints) Obtain the hintHints.LOG_PREFIX_HINT
, if present, or an empty String.static <T> T
Hints.getRequiredHint
(Map<String, Object> hints, String hintName) Obtain the value for a required hint.static boolean
Hints.isLoggingSuppressed
(Map<String, Object> hints) Whether to suppress logging based on the hintHints.SUPPRESS_LOGGING_HINT
.Merge a single hint into a map of hints, possibly creating and copying all hints into a new map, or otherwise if the map of hints is empty, creating a new single entry map.Merge two maps of hints, creating and copying into a new map if both have values, or returning the non-empty map, or an empty map if both are empty.Merge two maps of hints, creating and copying into a new map if both have values, or returning the non-empty map, or an empty map if both are empty.static void
Hints.touchDataBuffer
(DataBuffer buffer, Map<String, Object> hints, Log logger) If the hints contain aHints.LOG_PREFIX_HINT
and the given logger has DEBUG level enabled, apply the log prefix as a hint to the given buffer viaDataBufferUtils.touch(DataBuffer, Object)
.ModifierConstructorDescriptionCodecException
(String msg, Throwable cause) Create a new CodecException.DecodingException
(String msg, Throwable cause) Create a new DecodingException.EncodingException
(String msg, Throwable cause) Create a new EncodingException. -
Uses of Nullable in org.springframework.core.convert
Modifier and TypeMethodDescriptionstatic TypeDescriptor
TypeDescriptor.array
(TypeDescriptor elementTypeDescriptor) Create a new type descriptor as an array of the specified type.<T> T
Convert the givensource
to the specifiedtargetType
.ConversionService.convert
(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the givensource
to the specifiedtargetType
.TypeDescriptor.elementTypeDescriptor
(Object element) If this type is aCollection
or an array, creates an element TypeDescriptor from the provided collection or array element.static TypeDescriptor
Create a new type descriptor for an object.<T extends Annotation>
TTypeDescriptor.getAnnotation
(Class<T> annotationType) Obtain the annotation of the specifiedannotationType
that is on this type descriptor.TypeDescriptor.getElementTypeDescriptor()
If this type is an array, returns the array's component type.TypeDescriptor.getMapKeyTypeDescriptor()
If this type is aMap
and its key type is parameterized, returns the map's key type.TypeDescriptor.getMapKeyTypeDescriptor
(Object mapKey) If this type is aMap
, creates a mapKeyTypeDescriptor
from the provided map key.TypeDescriptor.getMapValueTypeDescriptor()
If this type is aMap
and its value type is parameterized, returns the map's value type.TypeDescriptor.getMapValueTypeDescriptor
(Object mapValue) If this type is aMap
, creates a mapValueTypeDescriptor
from the provided map value.Property.getReadMethod()
The property getter method: e.g.ConversionFailedException.getSourceType()
Return the source type we tried to convert the value from.ConverterNotFoundException.getSourceType()
Return the source type that was requested to convert from.ConversionFailedException.getValue()
Return the offending value.Property.getWriteMethod()
The property setter method: e.g.static TypeDescriptor
Create a type descriptor for a nested type declared within the field.static TypeDescriptor
Create a type descriptor for a nested type declared within the property.static TypeDescriptor
TypeDescriptor.nested
(MethodParameter methodParameter, int nestingLevel) Create a type descriptor for a nested type declared within the method parameter.Cast thisTypeDescriptor
to a superclass or implemented interface preserving annotations and nested type context.Modifier and TypeMethodDescriptionstatic TypeDescriptor
TypeDescriptor.array
(TypeDescriptor elementTypeDescriptor) Create a new type descriptor as an array of the specified type.boolean
ConversionService.canConvert
(Class<?> sourceType, Class<?> targetType) Returntrue
if objects ofsourceType
can be converted to thetargetType
.boolean
ConversionService.canConvert
(TypeDescriptor sourceType, TypeDescriptor targetType) Returntrue
if objects ofsourceType
can be converted to thetargetType
.static TypeDescriptor
TypeDescriptor.collection
(Class<?> collectionType, TypeDescriptor elementTypeDescriptor) Create a new type descriptor from aCollection
type.<T> T
Convert the givensource
to the specifiedtargetType
.ConversionService.convert
(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the givensource
to the specifiedtargetType
.ConversionService.convert
(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the givensource
to the specifiedtargetType
.boolean
boolean
static TypeDescriptor
Create a new type descriptor for an object.static TypeDescriptor
TypeDescriptor.map
(Class<?> mapType, TypeDescriptor keyTypeDescriptor, TypeDescriptor valueTypeDescriptor) Create a new type descriptor from aMap
type.static TypeDescriptor
TypeDescriptor.map
(Class<?> mapType, TypeDescriptor keyTypeDescriptor, TypeDescriptor valueTypeDescriptor) Create a new type descriptor from aMap
type.Narrows thisTypeDescriptor
by setting its type to the class of the provided value.Cast thisTypeDescriptor
to a superclass or implemented interface preserving annotations and nested type context.static TypeDescriptor
Create a new type descriptor from the given type.ModifierConstructorDescriptionConversionFailedException
(TypeDescriptor sourceType, TypeDescriptor targetType, Object value, Throwable cause) Create a new conversion exception.ConversionFailedException
(TypeDescriptor sourceType, TypeDescriptor targetType, Object value, Throwable cause) Create a new conversion exception.ConverterNotFoundException
(TypeDescriptor sourceType, TypeDescriptor targetType) Create a new conversion executor not found exception.TypeDescriptor
(ResolvableType resolvableType, Class<?> type, Annotation[] annotations) Create a new type descriptor from aResolvableType
.TypeDescriptor
(ResolvableType resolvableType, Class<?> type, Annotation[] annotations) Create a new type descriptor from aResolvableType
. -
Uses of Nullable in org.springframework.core.convert.converter
Modifier and TypeMethodDescriptionConvert the source object of typeS
to target typeT
.GenericConverter.convert
(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the source object to the targetType described by theTypeDescriptor
.GenericConverter.getConvertibleTypes()
Return the source and target types that this converter can convert between.Modifier and TypeMethodDescriptionGenericConverter.convert
(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the source object to the targetType described by theTypeDescriptor
.boolean
-
Uses of Nullable in org.springframework.core.convert.support
Modifier and TypeMethodDescription<T> T
GenericConversionService.convert
(Object source, TypeDescriptor targetType) Convenience operation for converting a source object to the specified targetType, where the target type is a descriptor that provides additional conversion context.GenericConversionService.convert
(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) protected Object
GenericConversionService.convertNullSource
(TypeDescriptor sourceType, TypeDescriptor targetType) Template method to convert anull
source.ConvertingPropertyEditorAdapter.getAsText()
protected GenericConverter
GenericConversionService.getConverter
(TypeDescriptor sourceType, TypeDescriptor targetType) Hook method to look up the converter for a given sourceType/targetType pair.protected GenericConverter
GenericConversionService.getDefaultConverter
(TypeDescriptor sourceType, TypeDescriptor targetType) Return the default converter if no converter is found for the given sourceType/targetType pair.Modifier and TypeMethodDescriptionboolean
GenericConversionService.canBypassConvert
(TypeDescriptor sourceType, TypeDescriptor targetType) Return whether conversion between the source type and the target type can be bypassed.boolean
GenericConversionService.canConvert
(Class<?> sourceType, Class<?> targetType) boolean
GenericConversionService.canConvert
(TypeDescriptor sourceType, TypeDescriptor targetType) <T> T
GenericConversionService.convert
(Object source, TypeDescriptor targetType) Convenience operation for converting a source object to the specified targetType, where the target type is a descriptor that provides additional conversion context.GenericConversionService.convert
(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.convert
(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) protected Object
GenericConversionService.convertNullSource
(TypeDescriptor sourceType, TypeDescriptor targetType) Template method to convert anull
source.static void
ConversionServiceFactory.registerConverters
(Set<?> converters, ConverterRegistry registry) Register the given Converter objects with the given target ConverterRegistry.void
-
Uses of Nullable in org.springframework.core.env
Modifier and TypeMethodDescriptionprotected <T> T
AbstractPropertyResolver.convertValueIfNecessary
(Object value, Class<T> targetType) Convert the given value to the specified target type, if necessary.protected String
AbstractEnvironment.doGetActiveProfilesProperty()
Return the property value for the active profiles.protected String
AbstractEnvironment.doGetDefaultProfilesProperty()
Return the property value for the default profiles.Return the property source with the given name,null
if not found.CommandLinePropertySource.getOptionValues
(String name) Return the collection of values associated with the command line option having the given name.JOptCommandLinePropertySource.getOptionValues
(String name) SimpleCommandLinePropertySource.getOptionValues
(String name) AbstractEnvironment.getProperty
(String key) <T> T
AbstractEnvironment.getProperty
(String key, Class<T> targetType) AbstractPropertyResolver.getProperty
(String key) final String
CommandLinePropertySource.getProperty
(String name) This implementation first checks to see if the name specified is the special "non-option arguments" property, and if so delegates to the abstractCommandLinePropertySource.getNonOptionArgs()
method.CompositePropertySource.getProperty
(String name) MapPropertySource.getProperty
(String name) PropertyResolver.getProperty
(String key) Return the property value associated with the given key, ornull
if the key cannot be resolved.<T> T
PropertyResolver.getProperty
(String key, Class<T> targetType) Return the property value associated with the given key, ornull
if the key cannot be resolved.abstract Object
PropertySource.getProperty
(String name) Return the value associated with the given name, ornull
if not found.PropertySource.StubPropertySource.getProperty
(String name) Always returnsnull
.PropertySourcesPropertyResolver.getProperty
(String key) <T> T
PropertySourcesPropertyResolver.getProperty
(String key, Class<T> targetValueType) protected <T> T
PropertySourcesPropertyResolver.getProperty
(String key, Class<T> targetValueType, boolean resolveNestedPlaceholders) SystemEnvironmentPropertySource.getProperty
(String name) This implementation returnstrue
if a property with the given name or any underscore/uppercase variant thereof exists in this property source.protected abstract String
AbstractPropertyResolver.getPropertyAsRawString
(String key) Retrieve the specified property as a raw String, i.e.protected String
PropertySourcesPropertyResolver.getPropertyAsRawString
(String key) Remove and return the property source with the given name,null
if not found.Modifier and TypeMethodDescriptionprotected <T> T
AbstractPropertyResolver.convertValueIfNecessary
(Object value, Class<T> targetType) Convert the given value to the specified target type, if necessary.boolean
ThisPropertySource
object is equal to the given object if: they are the same instance thename
properties for both objects are equalvoid
AbstractEnvironment.setValueSeparator
(String valueSeparator) void
AbstractPropertyResolver.setValueSeparator
(String valueSeparator) Specify the separating character between the placeholders replaced by this resolver and their associated default value, ornull
if no such special character should be processed as a value separator.void
ConfigurablePropertyResolver.setValueSeparator
(String valueSeparator) Specify the separating character between the placeholders replaced by this resolver and their associated default value, ornull
if no such special character should be processed as a value separator.ModifierConstructorDescriptionPropertySourcesPropertyResolver
(PropertySources propertySources) Create a new resolver against the given property sources. -
Uses of Nullable in org.springframework.core.io
Modifier and TypeMethodDescriptionprotected static String
protected static Object
VfsUtils.doGetVisitorAttributes()
ResourceEditor.getAsText()
final ClassLoader
ClassPathResource.getClassLoader()
Return theClassLoader
that this resource will be obtained from.DefaultResourceLoader.getClassLoader()
Return the ClassLoader to load class path resources with.ResourceLoader.getClassLoader()
Expose theClassLoader
used by thisResourceLoader
.AbstractResource.getFilename()
This implementation always returnsnull
, assuming that this resource type does not have a filename.ClassPathResource.getFilename()
This implementation returns the name of the file that this class path resource refers to.Resource.getFilename()
Determine the filename for this resource — typically the last part of the path — for example,"myfile.txt"
.UrlResource.getFilename()
This implementation returns the URL-decoded name of the file that this URL refers to.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 aURL
for the underlying class path resource.Modifier and TypeMethodDescriptionboolean
This implementation compares description strings.boolean
This implementation compares the underlying byte array.boolean
This implementation compares the underlying class path locations and associated class loaders.boolean
This implementation compares the underlying description String.boolean
This implementation compares the underlying file paths.boolean
This implementation compares the underlying InputStream.boolean
This implementation compares the underlying Path references.boolean
This implementation compares the underlying URL references.boolean
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, ornull
for using the thread context class loader at the time of actual resource access.ModifierConstructorDescriptionByteArrayResource
(byte[] byteArray, String description) Create a newByteArrayResource
with a description.ClassPathContextResource
(String path, ClassLoader classLoader) ClassPathResource
(String path, Class<?> clazz) Create a newClassPathResource
forClass
usage.ClassPathResource
(String path, ClassLoader classLoader) Create a newClassPathResource
forClassLoader
usage.DefaultResourceLoader
(ClassLoader classLoader) Create a new DefaultResourceLoader.DescriptiveResource
(String description) Create a new DescriptiveResource.InputStreamResource
(InputStream inputStream, String description) Create a new InputStreamResource.ResourceEditor
(ResourceLoader resourceLoader, PropertyResolver propertyResolver) Create a new instance of theResourceEditor
class using the givenResourceLoader
andPropertyResolver
.ResourceEditor
(ResourceLoader resourceLoader, PropertyResolver propertyResolver, boolean ignoreUnresolvablePlaceholders) Create a new instance of theResourceEditor
class using the givenResourceLoader
.UrlResource
(String protocol, String location, String fragment) Create a newUrlResource
based on a URI specification. -
Uses of Nullable in org.springframework.core.io.buffer
-
Uses of Nullable in org.springframework.core.io.support
Modifier and TypeMethodDescriptionPropertySourceDescriptor.encoding()
Returns the value of theencoding
record component.final Charset
EncodedResource.getCharset()
PathMatchingResourcePatternResolver.getClassLoader()
final String
EncodedResource.getEncoding()
Return the encoding to use for reading from the resource, ornull
if none specified.protected <T> T
SpringFactoriesLoader.instantiateFactory
(String implementationName, Class<T> type, SpringFactoriesLoader.ArgumentResolver argumentResolver, SpringFactoriesLoader.FailureHandler failureHandler) PropertySourceDescriptor.name()
Returns the value of thename
record component.Class<? extends PropertySourceFactory>
PropertySourceDescriptor.propertySourceFactory()
Returns the value of thepropertySourceFactory
record component.<T> T
Resolve the given argument if possible.Modifier and TypeMethodDescriptionprotected void
PathMatchingResourcePatternResolver.addAllClassLoaderJarRoots
(ClassLoader classLoader, Set<Resource> result) Search allURLClassLoader
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.DefaultPropertySourceFactory.createPropertySource
(String name, EncodedResource resource) PropertySourceFactory.createPropertySource
(String name, EncodedResource resource) Create aPropertySource
that wraps the given resource.boolean
LocalizedResourceHelper.findLocalizedResource
(String name, String extension, Locale locale) Find the most specific localized resource for the given name, extension and locale:static SpringFactoriesLoader
SpringFactoriesLoader.forDefaultResourceLocation
(ClassLoader classLoader) Create aSpringFactoriesLoader
instance that will load and instantiate the factory implementations from "META-INF/spring.factories", using the given class loader.static SpringFactoriesLoader
SpringFactoriesLoader.forResourceLocation
(String resourceLocation, ClassLoader classLoader) Create aSpringFactoriesLoader
instance that will load and instantiate the factory implementations from the given location, using the given class loader.static ResourcePatternResolver
ResourcePatternUtils.getResourcePatternResolver
(ResourceLoader resourceLoader) Return a defaultResourcePatternResolver
for the givenResourceLoader
.protected <T> T
SpringFactoriesLoader.instantiateFactory
(String implementationName, Class<T> type, SpringFactoriesLoader.ArgumentResolver argumentResolver, SpringFactoriesLoader.FailureHandler failureHandler) static boolean
Return whether the given resource location is a URL: either a special "classpath" or "classpath*" pseudo URL or a standard URL.<T> List<T>
SpringFactoriesLoader.load
(Class<T> factoryType, SpringFactoriesLoader.ArgumentResolver argumentResolver) Load and instantiate the factory implementations of the given type from "META-INF/spring.factories", using the configured class loader and the given argument resolver.<T> List<T>
SpringFactoriesLoader.load
(Class<T> factoryType, SpringFactoriesLoader.ArgumentResolver argumentResolver, SpringFactoriesLoader.FailureHandler failureHandler) Load and instantiate the factory implementations of the given type from "META-INF/spring.factories", using the configured class loader, the given argument resolver, and custom failure handling provided by the given failure handler.<T> List<T>
SpringFactoriesLoader.load
(Class<T> factoryType, SpringFactoriesLoader.ArgumentResolver argumentResolver, SpringFactoriesLoader.FailureHandler failureHandler) Load and instantiate the factory implementations of the given type from "META-INF/spring.factories", using the configured class loader, the given argument resolver, and custom failure handling provided by the given failure handler.<T> List<T>
SpringFactoriesLoader.load
(Class<T> factoryType, SpringFactoriesLoader.FailureHandler failureHandler) Load and instantiate the factory implementations of the given type from "META-INF/spring.factories", using the configured class loader with custom failure handling provided by the given failure handler.static Properties
PropertiesLoaderUtils.loadAllProperties
(String resourceName, ClassLoader classLoader) Load all properties from the specified class path resource (in ISO-8859-1 encoding), using the given class loader.static <T> List<T>
SpringFactoriesLoader.loadFactories
(Class<T> factoryType, ClassLoader classLoader) Load and instantiate the factory implementations of the given type from "META-INF/spring.factories", using the given class loader.SpringFactoriesLoader.loadFactoryNames
(Class<?> factoryType, ClassLoader classLoader) Deprecated.as of 6.0 in favor ofSpringFactoriesLoader.load(Class, ArgumentResolver, FailureHandler)
void
PropertiesLoaderSupport.setPropertiesPersister
(PropertiesPersister propertiesPersister) Set the PropertiesPersister to use for parsing properties files.void
LocalizedResourceHelper.setSeparator
(String separator) Set the separator to use in-between file name parts.ModifierConstructorDescriptionEncodedResource
(Resource resource, String encoding) Create a newEncodedResource
for the givenResource
, using the specifiedencoding
.EncodedResource
(Resource resource, Charset charset) Create a newEncodedResource
for the givenResource
, using the specifiedCharset
.PathMatchingResourcePatternResolver
(ClassLoader classLoader) Create a new PathMatchingResourcePatternResolver with a DefaultResourceLoader.PropertySourceDescriptor
(List<String> locations, boolean ignoreResourceNotFound, String name, Class<? extends PropertySourceFactory> propertySourceFactory, String encoding) Creates an instance of aPropertySourceDescriptor
record class.PropertySourceDescriptor
(List<String> locations, boolean ignoreResourceNotFound, String name, Class<? extends PropertySourceFactory> propertySourceFactory, String encoding) Creates an instance of aPropertySourceDescriptor
record class.PropertySourceDescriptor
(List<String> locations, boolean ignoreResourceNotFound, String name, Class<? extends PropertySourceFactory> propertySourceFactory, String encoding) Creates an instance of aPropertySourceDescriptor
record class.ResourceArrayPropertyEditor
(ResourcePatternResolver resourcePatternResolver, PropertyResolver propertyResolver) Create a new ResourceArrayPropertyEditor with the givenResourcePatternResolver
andPropertyResolver
(typically anEnvironment
).ResourceArrayPropertyEditor
(ResourcePatternResolver resourcePatternResolver, PropertyResolver propertyResolver, boolean ignoreUnresolvablePlaceholders) Create a new ResourceArrayPropertyEditor with the givenResourcePatternResolver
andPropertyResolver
(typically anEnvironment
).protected
SpringFactoriesLoader
(ClassLoader classLoader, Map<String, List<String>> factories) Create a newSpringFactoriesLoader
instance. -
Uses of Nullable in org.springframework.core.log
Modifier and TypeMethodDescriptionstatic String
LogFormatUtils.formatValue
(Object value, boolean limitLength) Convenience variant ofLogFormatUtils.formatValue(Object, int, boolean)
that limits the length of a log message to 100 characters and also replaces newline and control characters iflimitLength
is set to "true".static String
LogFormatUtils.formatValue
(Object value, int maxLength, boolean replaceNewlinesAndControlCharacters) Format the given value viatoString()
, quoting it if it is aCharSequence
, truncating at the specifiedmaxLength
, and compacting it into a single line whenreplaceNewLines
is set. -
Uses of Nullable in org.springframework.core.metrics
Modifier and TypeMethodDescriptionStartupStep.getParentId()
Return, if available, the id of the parent step. -
Uses of Nullable in org.springframework.core.serializer
-
Uses of Nullable in org.springframework.core.style
Modifier and TypeMethodDescriptionAppend a field value.Style the given value, returning a String representation.void
DefaultToStringStyler.styleField
(StringBuilder buffer, String fieldName, Object value) void
ToStringStyler.styleField
(StringBuilder buffer, String fieldName, Object value) Style a field value as a string.void
DefaultToStringStyler.styleValue
(StringBuilder buffer, Object value) ModifierConstructorDescriptionToStringCreator
(Object obj, ToStringStyler styler) Create a ToStringCreator for the given object, using the provided style.ToStringCreator
(Object obj, ValueStyler styler) Create a ToStringCreator for the given object, using the provided style. -
Uses of Nullable in org.springframework.core.task
Modifier and TypeMethodDescriptionfinal ThreadFactory
SimpleAsyncTaskExecutor.getThreadFactory()
Return the external factory to use for creating new Threads, if any.Modifier and TypeMethodDescriptionvoid
SimpleAsyncTaskExecutor.setThreadFactory
(ThreadFactory threadFactory) Specify an external factory to use for creating new Threads, instead of relying on the local properties of this executor. -
Uses of Nullable in org.springframework.core.task.support
Modifier and TypeMethodDescriptionprotected void
TaskExecutorAdapter.doExecute
(Executor concurrentExecutor, TaskDecorator taskDecorator, Runnable runnable) Actually execute the givenRunnable
(which may be a user-supplied task or a wrapper around a user-supplied task) with the given executor. -
Uses of Nullable in org.springframework.core.type
Modifier and TypeMethodDescriptiondefault MultiValueMap<String,
Object> AnnotatedTypeMetadata.getAllAnnotationAttributes
(String annotationName) Retrieve all attributes of all annotations of the given type, if any (i.e.default MultiValueMap<String,
Object> AnnotatedTypeMetadata.getAllAnnotationAttributes
(String annotationName, boolean classValuesAsString) Retrieve all attributes of all annotations of the given type, if any (i.e.StandardAnnotationMetadata.getAllAnnotationAttributes
(String annotationName, boolean classValuesAsString) StandardMethodMetadata.getAllAnnotationAttributes
(String annotationName, boolean classValuesAsString) AnnotatedTypeMetadata.getAnnotationAttributes
(String annotationName) Retrieve the attributes of the annotation of the given type, if any (i.e.AnnotatedTypeMetadata.getAnnotationAttributes
(String annotationName, boolean classValuesAsString) Retrieve the attributes of the annotation of the given type, if any (i.e.StandardAnnotationMetadata.getAnnotationAttributes
(String annotationName, boolean classValuesAsString) StandardMethodMetadata.getAnnotationAttributes
(String annotationName, boolean classValuesAsString) ClassMetadata.getEnclosingClassName()
Return the name of the enclosing class of the underlying class, ornull
if the underlying class is a top-level class.StandardClassMetadata.getEnclosingClassName()
ClassMetadata.getSuperClassName()
Return the name of the superclass of the underlying class, ornull
if there is no superclass defined.StandardClassMetadata.getSuperClassName()
-
Uses of Nullable in org.springframework.core.type.classreading
ModifierConstructorDescriptionCachingMetadataReaderFactory
(ClassLoader classLoader) Create a new CachingMetadataReaderFactory for the givenClassLoader
, using a local resource cache.CachingMetadataReaderFactory
(ResourceLoader resourceLoader) Create a new CachingMetadataReaderFactory for the givenResourceLoader
, 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. -
Uses of Nullable in org.springframework.core.type.filter
Modifier and TypeMethodDescriptionprotected Boolean
AnnotationTypeFilter.hasAnnotation
(String typeName) protected Boolean
AbstractTypeHierarchyTraversingFilter.matchInterface
(String interfaceName) Override this to match on interface type name.protected Boolean
AnnotationTypeFilter.matchInterface
(String interfaceName) protected Boolean
AssignableTypeFilter.matchInterface
(String interfaceName) protected Boolean
AbstractTypeHierarchyTraversingFilter.matchSuperClass
(String superClassName) Override this to match on supertype name.protected Boolean
AnnotationTypeFilter.matchSuperClass
(String superClassName) protected Boolean
AssignableTypeFilter.matchSuperClass
(String superClassName) protected Boolean
AssignableTypeFilter.matchTargetType
(String typeName) ModifierConstructorDescriptionAspectJTypeFilter
(String typePatternExpression, ClassLoader classLoader) -
Uses of Nullable in org.springframework.util
Modifier and TypeMethodDescriptionLinkedCaseInsensitiveMap.computeIfAbsent
(String key, Function<? super String, ? extends V> mappingFunction) static String[]
StringUtils.concatenateStringArrays
(String[] array1, String[] array2) Concatenate the givenString
arrays into one, with overlapping array elements included twice.StopWatch.currentTaskName()
Get the name of the currently running task, if any.static Object
SerializationUtils.deserialize
(byte[] bytes) Deprecated.This utility uses Java Object Serialization, which allows arbitrary code to be run and is known for being the source of many Remote Code Execution (RCE) vulnerabilities.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, ConcurrentReferenceHashMap<K, V>.org.springframework.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
static Field
static <E> E
CollectionUtils.findFirstMatch
(Collection<?> source, Collection<E> candidates) Return the first element in 'candidates
' that is contained in 'source
'.protected Method
MethodInvoker.findMatchingMethod()
Find a matching method with the specified name for the specified arguments.static Method
ReflectionUtils.findMethod
(Class<?> clazz, String name) Attempt to find aMethod
on the supplied class with the supplied name and no parameters.static Method
ReflectionUtils.findMethod
(Class<?> clazz, String name, Class<?>... paramTypes) Attempt to find aMethod
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, usingSortedSet.first()
or otherwise using the iterator.ConcurrentReferenceHashMap.Reference.get()
Return the referenced entry, ornull
if the entry is no longer available.MimeType.getCharset()
Return the character set, as indicated by acharset
parameter, if any.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 returnnull
).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
Get the field represented by the suppliedfield object
on the specifiedtarget 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.Return the first value for the given key.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 returnnull
).ConcurrentReferenceHashMap.Reference.getNext()
Return the next reference in the chain, ornull
if none.ConcurrentReferenceHashMap.getOrDefault
(Object key, V defaultValue) LinkedCaseInsensitiveMap.getOrDefault
(Object key, V defaultValue) MimeType.getParameter
(String name) Return a generic parameter value, given a parameter name.protected final ConcurrentReferenceHashMap.Reference<K,
V> ConcurrentReferenceHashMap.getReference
(Object key, ConcurrentReferenceHashMap.Restructure restructure) Return aConcurrentReferenceHashMap.Reference
to theConcurrentReferenceHashMap.Entry
for the specifiedkey
, ornull
if not found.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.MimeType.getSubtypeSuffix()
Return the subtype suffix as defined in RFC 6839.Class<?>
MethodInvoker.getTargetClass()
Return the target class on which to call the target method.MethodInvoker.getTargetMethod()
Return the name of the method to be invoked.MethodInvoker.getTargetObject()
Return the target object on which to call the target method.CustomizableThreadCreator.getThreadGroup()
Return the thread group that threads should be created in (ornull
for the default group).ConcurrentReferenceHashMap.Entry.getValue()
MethodInvoker.invoke()
Invoke the specified method.static Object
ReflectionUtils.invokeMethod
(Method method, Object target) Invoke the specifiedMethod
against the supplied target object with no arguments.static Object
ReflectionUtils.invokeMethod
(Method method, Object target, Object... args) Invoke the specifiedMethod
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, usingSortedSet.last()
or otherwise iterating over all elements (assuming a linked set).RouteMatcher.matchAndExtract
(String pattern, RouteMatcher.Route route) Match the pattern to the route and extract template variables.SimpleRouteMatcher.matchAndExtract
(String pattern, RouteMatcher.Route route) 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 givenString
value into aLocale
, accepting theLocale.toString()
format as well as BCP 47 language tags as specified byLocale.forLanguageTag(java.lang.String)
.static Locale
StringUtils.parseLocaleString
(String localeString) Parse the givenString
representation into aLocale
.ConcurrentReferenceHashMap.ReferenceManager.pollForPurge()
Return any reference that has been garbage collected and can be purged from the underlying structure ornull
if no references need purging.ConcurrentReferenceHashMap.putIfAbsent
(K key, V value) LinkedCaseInsensitiveMap.putIfAbsent
(String key, V value) static String
Quote the givenString
with single quotes.static Object
StringUtils.quoteIfString
(Object obj) Turn the given Object into aString
with single quotes if it is aString
; keeping the Object as-is else.boolean
Immediately remove the given key and any associated value.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.StringValueResolver.resolveStringValue
(String strVal) Resolve the given String value, for example parsing placeholders.static byte[]
Serialize the given object to a byte array.static String[]
Split aString
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 aOptional
.Modifier and TypeMethodDescriptionvoid
Add the given single value to the current list of values for the given key.void
default void
MultiValueMap.addIfAbsent
(K key, V value) static <A,
O extends A>
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>
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>
A[]ObjectUtils.addObjectToArray
(A[] array, O obj, int position) Add the given object to the given array at the specified position, returning a new array consisting of the input array contents plus the given object.static <A,
O extends A>
A[]ObjectUtils.addObjectToArray
(A[] array, O obj, int position) Add the given object to the given array at the specified position, returning a new array consisting of the input array contents plus the given object.static String[]
StringUtils.addStringToArray
(String[] array, String str) Append the givenString
to the givenString
array, returning a new array consisting of the input array contents plus the givenString
.static String
StringUtils.arrayToCommaDelimitedString
(Object[] arr) Convert aString
array into a comma delimitedString
(i.e., CSV).static String
StringUtils.arrayToDelimitedString
(Object[] arr, String delim) Convert aString
array into a delimitedString
(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 aCollection
into a delimitedString
(e.g., CSV).static String
StringUtils.collectionToDelimitedString
(Collection<?> coll, String delim) Convert aCollection
into a delimitedString
(e.g.static String
StringUtils.collectionToDelimitedString
(Collection<?> coll, String delim, String prefix, String suffix) Convert aCollection
to a delimitedString
(e.g.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 givenString
arrays into one, with overlapping array elements included twice.static String[]
StringUtils.concatenateStringArrays
(String[] array1, String[] array2) Concatenate the givenString
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
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 givenCharSequence
contains any whitespace characters.static boolean
StringUtils.containsWhitespace
(String str) Check whether the givenString
contains any whitespace characters.static byte[]
FileCopyUtils.copyToByteArray
(InputStream in) Copy the contents of the given InputStream into a new byte array.static byte[]
StreamUtils.copyToByteArray
(InputStream in) Copy the contents of the given InputStream into a new byte array.static String
FileCopyUtils.copyToString
(Reader in) Copy the contents of the given Reader into a String.static String
StreamUtils.copyToString
(InputStream in, Charset charset) Copy the contents of the given InputStream into a String.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.ReferenceManager.createReference
(ConcurrentReferenceHashMap.Entry<K, V> entry, int hash, ConcurrentReferenceHashMap.Reference<K, V> next) Factory method used to create a newConcurrentReferenceHashMap.Reference
.static String
Delete any character in a givenString
.static boolean
FileSystemUtils.deleteRecursively
(File root) Delete the suppliedFile
- for directories, recursively delete any nested directories or files as well.static boolean
FileSystemUtils.deleteRecursively
(Path root) Delete the suppliedFile
— for directories, recursively delete any nested directories or files as well.static String[]
StringUtils.delimitedListToStringArray
(String str, String delimiter) Take aString
that is a delimited list and convert it into aString
array.static String[]
StringUtils.delimitedListToStringArray
(String str, String delimiter) Take aString
that is a delimited list and convert it into aString
array.static String[]
StringUtils.delimitedListToStringArray
(String str, String delimiter, String charsToDelete) Take aString
that is a delimited list and convert it into aString
array.static String[]
StringUtils.delimitedListToStringArray
(String str, String delimiter, String charsToDelete) Take aString
that is a delimited list and convert it into aString
array.static String[]
StringUtils.delimitedListToStringArray
(String str, String delimiter, String charsToDelete) Take aString
that is a delimited list and convert it into aString
array.static Object
SerializationUtils.deserialize
(byte[] bytes) Deprecated.This utility uses Java Object Serialization, which allows arbitrary code to be run and is known for being the source of many Remote Code Execution (RCE) vulnerabilities.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, for removal: This API element is subject to removal in a future version.as of 4.3.7, in favor ofAssert.doesNotContain(String, String, String)
; to be removed in 6.1static 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 givenpath
against the givenpattern
.protected boolean
AntPathMatcher.doMatch
(String pattern, String path, boolean fullMatch, Map<String, String> uriTemplateVariables) Actually match the givenpath
against the givenpattern
.<T> T
ConcurrentReferenceHashMap.Segment.doTask
(int hash, Object key, ConcurrentReferenceHashMap<K, V>.org.springframework.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 givenString
ends with the specified suffix, ignoring upper/lower case.static boolean
StringUtils.endsWithIgnoreCase
(String str, String suffix) Test if the givenString
ends with the specified suffix, ignoring upper/lower case.boolean
final boolean
boolean
boolean
boolean
boolean
MimeType.equalsTypeAndSubtype
(MimeType other) Similar toMimeType.equals(Object)
but based on the type and subtype only, i.e.static Field
static Field
static Method
ReflectionUtils.findMethod
(Class<?> clazz, String name, Class<?>... paramTypes) Attempt to find aMethod
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, usingSortedSet.first()
or otherwise using the iterator.static Class<?>
ClassUtils.forName
(String name, ClassLoader classLoader) Replacement forClass.forName()
that also returns Class instances for primitives (e.g.static Class<?>[]
ClassUtils.getAllInterfacesForClass
(Class<?> clazz, ClassLoader classLoader) Return all interfaces that the given class implements as an array, including ones implemented by superclasses.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 ifobj
is notnull
; otherwise returns an empty String.static Object
Get the field represented by the suppliedfield object
on the specifiedtarget 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
Get the hash for a given object, apply an additional hash function to reduce collisions.static Method
ClassUtils.getInterfaceMethodIfPossible
(Method method, Class<?> targetClass) Determine a corresponding interface method for the given method handle, if possible.static Method
Determine whether the given class has a public method with the given signature, and return it if available (else throws anIllegalStateException
).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 returnnull
).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.ConcurrentReferenceHashMap.getOrDefault
(Object key, V defaultValue) 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 final ConcurrentReferenceHashMap.Reference<K,
V> ConcurrentReferenceHashMap.getReference
(Object key, ConcurrentReferenceHashMap.Restructure restructure) Return aConcurrentReferenceHashMap.Reference
to theConcurrentReferenceHashMap.Entry
for the specifiedkey
, ornull
if not found.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 void
Deprecated, for removal: This API element is subject to removal in a future version.as of 4.3.7, in favor ofAssert.hasLength(String, String)
; to be removed in 6.1static void
Assert that the given String is not empty; that is, it must not benull
and not the empty String.static void
Assert that the given String is not empty; that is, it must not benull
and not the empty String.static boolean
StringUtils.hasLength
(CharSequence str) Check that the givenCharSequence
is neithernull
nor of length 0.static boolean
Check that the givenString
is neithernull
nor of length 0.static void
Deprecated, for removal: This API element is subject to removal in a future version.as of 4.3.7, in favor ofAssert.hasText(String, String)
; to be removed in 6.1static void
Assert that the given String contains valid text content; that is, it must not benull
and must contain at least one non-whitespace character.static void
Assert that the given String contains valid text content; that is, it must not benull
and must contain at least one non-whitespace character.static boolean
StringUtils.hasText
(CharSequence str) Check whether the givenCharSequence
contains actual text.static boolean
Check whether the givenString
contains actual text.static String
ObjectUtils.identityToString
(Object obj) Return a String representation of an object's overall identity.boolean
Indicate whether this MIME Type includes the given MIME Type.static Object
ReflectionUtils.invokeMethod
(Method method, Object target) Invoke the specifiedMethod
against the supplied target object with no arguments.static Object
ReflectionUtils.invokeMethod
(Method method, Object target, Object... args) Invoke the specifiedMethod
against the supplied target object with the supplied arguments.static Object
ReflectionUtils.invokeMethod
(Method method, Object target, Object... args) Invoke the specifiedMethod
against the supplied target object with the supplied arguments.static boolean
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 thatsuperType.isAssignableFrom(subType)
istrue
.static void
Assert.isAssignable
(Class<?> superType, Class<?> subType, Supplier<String> messageSupplier) Assert thatsuperType.isAssignableFrom(subType)
istrue
.static boolean
TypeUtils.isAssignableBound
(Type lhsType, Type rhsType) static boolean
TypeUtils.isAssignableBound
(Type lhsType, Type rhsType) 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) checksstatic boolean
ClassUtils.isCglibProxyClassName
(String className) Deprecated.as of 5.2, in favor of custom (possibly narrower) checksboolean
MimeType.isCompatibleWith
(MimeType other) Indicate whether this MIME Type is compatible with the given MIME Type.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) Returntrue
if the supplied Collection isnull
or empty.static boolean
Returntrue
if the supplied Map isnull
or empty.static boolean
Determine whether the given object is empty.static boolean
Determine whether the given array is empty: i.e.static boolean
Deprecated.as of 5.3, in favor ofStringUtils.hasLength(String)
andStringUtils.hasText(String)
(orObjectUtils.isEmpty(Object)
)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 void
Deprecated, for removal: This API element is subject to removal in a future version.as of 4.3.7, in favor ofAssert.isNull(Object, String)
; to be removed in 6.1static void
Assert that an object isnull
.static void
Assert that an object isnull
.static boolean
ReflectionUtils.isObjectMethod
(Method method) Determine whether the given method is originally declared byObject
.boolean
static boolean
ClassUtils.isPresent
(String className, ClassLoader classLoader) Determine whether theClass
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
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, usingSortedSet.last()
or otherwise iterating over all elements (assuming a linked set).static boolean
StringUtils.matchesCharacter
(String str, char singleCharacter) Test if the givenString
matches the given single character.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 void
Assert.noNullElements
(Object[] array) Deprecated, for removal: This API element is subject to removal in a future version.as of 4.3.7, in favor ofAssert.noNullElements(Object[], String)
; to be removed in 6.1static void
Assert.noNullElements
(Object[] array, String message) Assert that an array contains nonull
elements.static void
Assert.noNullElements
(Object[] array, Supplier<String> messageSupplier) Assert that an array contains nonull
elements.static void
Assert.noNullElements
(Collection<?> collection, String message) Assert that a collection contains nonull
elements.static void
Assert.noNullElements
(Collection<?> collection, Supplier<String> messageSupplier) Assert that a collection contains nonull
elements.static void
Deprecated, for removal: This API element is subject to removal in a future version.as of 4.3.7, in favor ofAssert.notEmpty(Object[], String)
; to be removed in 6.1static void
Assert that an array contains elements; that is, it must not benull
and must contain at least one element.static void
Assert that an array contains elements; that is, it must not benull
and must contain at least one element.static void
Assert.notEmpty
(Collection<?> collection) Deprecated, for removal: This API element is subject to removal in a future version.as of 4.3.7, in favor ofAssert.notEmpty(Collection, String)
; to be removed in 6.1static void
Assert.notEmpty
(Collection<?> collection, String message) Assert that a collection contains elements; that is, it must not benull
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 benull
and must contain at least one element.static void
Deprecated, for removal: This API element is subject to removal in a future version.as of 4.3.7, in favor ofAssert.notEmpty(Map, String)
; to be removed in 6.1static void
Assert that a Map contains entries; that is, it must not benull
and must contain at least one entry.static void
Assert that a Map contains entries; that is, it must not benull
and must contain at least one entry.static void
Deprecated, for removal: This API element is subject to removal in a future version.as of 4.3.7, in favor ofAssert.notNull(Object, String)
; to be removed in 6.1static void
Assert that an object is notnull
.static void
Assert that an object is notnull
.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, returningtrue
if both arenull
orfalse
if only one isnull
.static boolean
ObjectUtils.nullSafeEquals
(Object o1, Object o2) Determine if the given objects are equal, returningtrue
if both arenull
orfalse
if only one isnull
.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
(short[] 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 ofObject#hashCode()
}.static int
ObjectUtils.nullSafeHashCode
(Object[] 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
(short[] 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 ClassLoader
ClassUtils.overrideThreadContextClassLoader
(ClassLoader classLoaderToUse) Override the thread context ClassLoader with the environment's bean ClassLoader if necessary, i.e.static <T extends Number>
TNumberUtils.parseNumber
(String text, Class<T> targetClass, NumberFormat numberFormat) Parse the giventext
into aNumber
instance of the given target class, using the suppliedNumberFormat
.protected String
PropertyPlaceholderHelper.parseStringValue
(String value, PropertyPlaceholderHelper.PlaceholderResolver placeholderResolver, Set<String> visitedPlaceholders) ConcurrentReferenceHashMap.putIfAbsent
(K key, V value) ConcurrentReferenceHashMap.putIfAbsent
(K key, V value) LinkedCaseInsensitiveMap.putIfAbsent
(String key, V value) static String
Quote the givenString
with single quotes.static Object
StringUtils.quoteIfString
(Object obj) Turn the given Object into aString
with single quotes if it is aString
; keeping the Object as-is else.boolean
boolean
boolean
boolean
boolean
static String
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.static byte[]
Serialize the given object to a byte array.void
Set the given single value under the given key.void
static void
Set the field represented by the supplied field object on the specified target object to the specifiedvalue
.static void
Set the field represented by the supplied field object on the specified target object to the specifiedvalue
.void
AntPathMatcher.setPathSeparator
(String pathSeparator) Set the path separator to use for pattern parsing.void
MethodInvoker.setTargetClass
(Class<?> targetClass) Set the target class on which to call the target method.void
MethodInvoker.setTargetMethod
(String targetMethod) Set the name of the method to be invoked.void
MethodInvoker.setTargetObject
(Object targetObject) Set the target object on which to call the target method.void
CustomizableThreadCreator.setThreadGroup
(ThreadGroup threadGroup) Specify the thread group that threads should be created in.void
CustomizableThreadCreator.setThreadNamePrefix
(String threadNamePrefix) Specify the prefix to use for the names of newly created threads.static boolean
PatternMatchUtils.simpleMatch
(String[] patterns, String str) Match a String against the given patterns, supporting the following simple pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy" matches (with an arbitrary number of pattern parts), as well as direct equality.static boolean
PatternMatchUtils.simpleMatch
(String pattern, String str) Match a String against the given pattern, supporting the following simple pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy" matches (with an arbitrary number of pattern parts), as well as direct equality.static boolean
PatternMatchUtils.simpleMatch
(String pattern, String str) Match a String against the given pattern, supporting the following simple pattern styles: "xxx*", "*xxx", "*xxx*" and "xxx*yyy" matches (with an arbitrary number of pattern parts), as well as direct equality.static String[]
Split aString
at the first occurrence of the delimiter.static String[]
Split aString
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 givenString
starts with the specified prefix, ignoring upper/lower case.static boolean
StringUtils.startsWithIgnoreCase
(String str, String prefix) Test if the givenString
starts with the specified prefix, ignoring upper/lower case.static Class<?>[]
ClassUtils.toClassArray
(Collection<Class<?>> collection) Copy the givenCollection
into aClass
array.static <E> Iterator<E>
CollectionUtils.toIterator
(Enumeration<E> enumeration) Adapt anEnumeration
to anIterator
.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 givenCollection
into aString
array.static String[]
StringUtils.toStringArray
(Enumeration<String> enumeration) Copy the givenEnumeration
into aString
array.static Object
ObjectUtils.unwrapOptional
(Object obj) Unwrap the given object which is potentially aOptional
.ModifierConstructorDescriptionCustomizableThreadCreator
(String threadNamePrefix) Create a new CustomizableThreadCreator with the given thread name prefix.InstanceFilter
(Collection<? extends T> includes, Collection<? extends T> excludes, boolean matchIfEmpty) Create a new instance based on includes/excludes collections.InstanceFilter
(Collection<? extends T> includes, Collection<? extends T> excludes, boolean matchIfEmpty) Create a new instance based on includes/excludes collections.LinkedCaseInsensitiveMap
(int expectedSize, Locale locale) Create a new LinkedCaseInsensitiveMap that wraps aLinkedHashMap
with an initial capacity that can accommodate the specified number of elements without any immediate resize/rehash operations to be expected, storing case-insensitive keys according to the given Locale (in lower case).LinkedCaseInsensitiveMap
(Locale locale) Create a new LinkedCaseInsensitiveMap that stores case-insensitive keys according to the given Locale (in lower case).Create a newMimeType
for the given type, subtype, and parameters.Copy-constructor that copies the type and subtype of the givenMimeType
, and allows for different parameter.PropertyPlaceholderHelper
(String placeholderPrefix, String placeholderSuffix, String valueSeparator, boolean ignoreUnresolvablePlaceholders) Creates a newPropertyPlaceholderHelper
that uses the supplied prefix and suffix. -
Uses of Nullable in org.springframework.util.comparator
-
Uses of Nullable in org.springframework.util.concurrent
Modifier and TypeMethodDescriptionprotected abstract T
Deprecated.Adapts the given adaptee's result into T.FutureAdapter.get()
Deprecated.Deprecated.SettableListenableFuture.get()
Deprecated.Retrieve the value.Deprecated.Retrieve the value.Modifier and TypeMethodDescriptionvoid
Deprecated.Called when theListenableFuture
completes with success.boolean
Deprecated.Set the value of this future.void
Deprecated.Trigger aSuccessCallback.onSuccess(Object)
call on all added callbacks with the given result.ModifierConstructorDescriptionListenableFutureTask
(Runnable runnable, T result) Deprecated.Create aListenableFutureTask
that will, upon running, execute the givenRunnable
, and arrange thatFutureTask.get()
will return the given result on successful completion. -
Uses of Nullable in org.springframework.util.function
Modifier and TypeMethodDescriptionSingletonSupplier.get()
Get the shared singleton instance for this supplier.static <T> SingletonSupplier<T>
SingletonSupplier.ofNullable
(Supplier<T> supplier) Build aSingletonSupplier
with the given supplier.static <T> SingletonSupplier<T>
SingletonSupplier.ofNullable
(T instance) Build aSingletonSupplier
with the given singleton instance.static <T> T
Resolve the givenSupplier
, getting its result or immediately returningnull
if the supplier itself wasnull
.Modifier and TypeMethodDescriptionstatic <T> SingletonSupplier<T>
SingletonSupplier.ofNullable
(Supplier<T> supplier) Build aSingletonSupplier
with the given supplier.static <T> SingletonSupplier<T>
SingletonSupplier.ofNullable
(T instance) Build aSingletonSupplier
with the given singleton instance.static <T> T
Resolve the givenSupplier
, getting its result or immediately returningnull
if the supplier itself wasnull
.ModifierConstructorDescriptionSingletonSupplier
(Supplier<? extends T> instanceSupplier, Supplier<? extends T> defaultSupplier) Build aSingletonSupplier
with the given instance supplier and a default supplier for the case when the instance isnull
.SingletonSupplier
(T instance, Supplier<? extends T> defaultSupplier) Build aSingletonSupplier
with the given singleton instance and a default supplier for the case when the instance isnull
. -
Uses of Nullable in org.springframework.util.unit
-
Uses of Nullable in org.springframework.util.xml
Modifier and TypeMethodDescriptionstatic Element
DomUtils.getChildElementByTagName
(Element ele, String childEleName) Utility method that returns the first child element identified by its name.static String
DomUtils.getChildElementValueByTagName
(Element ele, String childEleName) Utility method that returns the first child element value identified by its name.static XMLEventReader
StaxUtils.getXMLEventReader
(Source source) Return theXMLEventReader
for the given StAX Source.static XMLEventWriter
StaxUtils.getXMLEventWriter
(Result result) Return theXMLEventWriter
for the given StAX Result.static XMLStreamReader
StaxUtils.getXMLStreamReader
(Source source) Return theXMLStreamReader
for the given StAX Source.static XMLStreamWriter
StaxUtils.getXMLStreamWriter
(Result result) Return theXMLStreamWriter
for the given StAX Result.Modifier and TypeMethodDescriptionvoid
SimpleNamespaceContext.removeBinding
(String prefix) Remove the given prefix from this context.