Uses of Annotation Interface
org.springframework.lang.Nullable
Packages that use 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 classes for Spring's serializer abstraction.
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 (for example, for classpath scanning).
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
Methods in org.springframework.aot.generate with annotations of type NullableModifier and TypeMethodDescriptionorg.springframework.javapoet.CodeBlockMethodReference.ArgumentCodeGenerator.generateCode(org.springframework.javapoet.TypeName argumentType) Generate the code for the given argument type.org.springframework.javapoet.CodeBlockValueCodeGenerator.Delegate.generateCode(ValueCodeGenerator valueCodeGenerator, Object value) Generate the code for the specified non-nullvalue.org.springframework.javapoet.CodeBlockValueCodeGeneratorDelegates.CollectionDelegate.generateCode(ValueCodeGenerator valueCodeGenerator, Object value) org.springframework.javapoet.CodeBlockValueCodeGeneratorDelegates.MapDelegate.generateCode(ValueCodeGenerator valueCodeGenerator, Object value) protected org.springframework.javapoet.CodeBlockValueCodeGeneratorDelegates.MapDelegate.generateMapCode(ValueCodeGenerator valueCodeGenerator, Map<?, ?> map) Generate the code for a non-emptyMap.GeneratedFiles.FileHandler.getContent()Return anInputStreamSourcefor the content of the file ornullif the file does not exist.GeneratedClass.getEnclosingClass()Return the enclosingGeneratedClassornullif this instance represents a top-level class.InMemoryGeneratedFiles.getGeneratedFile(GeneratedFiles.Kind kind, String path) Return theInputStreamSourceof specified file.InMemoryGeneratedFiles.getGeneratedFileContent(GeneratedFiles.Kind kind, String path) Return the content of the specified file.ValueCodeGenerator.getGeneratedMethods()Return theGeneratedMethodsthat represents the scope in which code generated by this instance will be added, ornullif no specific scope is set.ValueCodeGenerationException.getValue()Return the value that failed to be generated.Method parameters in org.springframework.aot.generate with annotations of type NullableModifier and TypeMethodDescriptionorg.springframework.javapoet.ClassNameClassNameGenerator.generateClassName(String featureName, org.springframework.javapoet.ClassName target) Generate a uniqueClassNamebased on the specifiedfeatureNameandtarget.org.springframework.javapoet.CodeBlockValueCodeGenerator.generateCode(Object value) Generate the code that represents the specifiedvalue.org.springframework.javapoet.CodeBlockDefaultMethodReference.toInvokeCodeBlock(MethodReference.ArgumentCodeGenerator argumentCodeGenerator, org.springframework.javapoet.ClassName targetClassName) org.springframework.javapoet.CodeBlockMethodReference.toInvokeCodeBlock(MethodReference.ArgumentCodeGenerator argumentCodeGenerator, org.springframework.javapoet.ClassName targetClassName) Return this method reference as aCodeBlockusing the specifiedMethodReference.ArgumentCodeGenerator.Constructor parameters in org.springframework.aot.generate with annotations of type NullableModifierConstructorDescriptionDefaultMethodReference(org.springframework.javapoet.MethodSpec method, org.springframework.javapoet.ClassName declaringClass) ValueCodeGenerationException(Object value, Throwable cause) protectedValueCodeGenerationException(String message, Object value, Throwable cause) protectedValueCodeGenerationException(String message, Object value, Throwable cause) -
Uses of Nullable in org.springframework.aot.hint
Methods in org.springframework.aot.hint with annotations of type NullableModifier and TypeMethodDescriptionAbstractTypeReference.getEnclosingType()TypeReference.getEnclosingType()Return the enclosing type reference, ornullif this type reference does not have an enclosing type.ConditionalHint.getReachableType()Return the type that should be reachable for this hint to apply, ornullif 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.Method parameters in org.springframework.aot.hint with annotations of type NullableModifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanResourcePatternHints.Builder.excludes(TypeReference reachableType, String... excludes) Exclude resources matching the specified patterns.ResourcePatternHints.Builder.includes(TypeReference reachableType, String... includes) Include resources matching the specified patterns.voidRuntimeHintsRegistrar.registerHints(RuntimeHints hints, ClassLoader classLoader) Contribute hints to the givenRuntimeHintsinstance.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 givenlocationis 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 specifiedTypeReferenceneed 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.Constructor parameters in org.springframework.aot.hint with annotations of type NullableModifierConstructorDescriptionprotectedAbstractTypeReference(String packageName, String simpleName, TypeReference enclosingType) -
Uses of Nullable in org.springframework.aot.hint.support
Method parameters in org.springframework.aot.hint.support with annotations of type NullableModifier and TypeMethodDescriptionvoidFilePatternResourceHintsRegistrar.Builder.registerHints(ResourceHints hints, ClassLoader classLoader) Register resource hints for the current state of this builder.voidFilePatternResourceHintsRegistrar.registerHints(ResourceHints hints, ClassLoader classLoader) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of Nullable in org.springframework.aot.nativex
Constructor parameters in org.springframework.aot.nativex with annotations of type NullableModifierConstructorDescriptionFileNativeConfigurationWriter(Path basePath, String groupId, String artifactId) FileNativeConfigurationWriter(Path basePath, String groupId, String artifactId) -
Uses of Nullable in org.springframework.core
Methods in org.springframework.core with annotations of type NullableModifier and TypeMethodDescriptionstatic StringNestedExceptionUtils.buildMessage(String message, Throwable cause) Deprecated.as of 6.0, in favor of custom exception messages with selective inclusion of cause messagesstatic BooleanRetrieve the flag for the given property key, returningnullinstead offalsein case of no actual flag set.protected IntegerFind 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 ClassLoaderConfigurableObjectInputStream.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[]ParameterNameDiscoverer.getParameterNames(Constructor<?> ctor) Return parameter names for a constructor, ornullif they cannot be determined.String[]ParameterNameDiscoverer.getParameterNames(Method method) Return parameter names for a method, ornullif 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 StringSpringProperties.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 JavaClassbeing managed, if available; otherwisenull.ResolvableTypeProvider.getResolvableType()Return theResolvableTypedescribing this instance (ornullif some sort of default should be applied instead).NestedCheckedException.getRootCause()Retrieve the innermost cause of this exception, if any.static ThrowableNestedExceptionUtils.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 StringSpringVersion.getVersion()Return the full version string of the present Spring codebase, ornullif 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 InputStreamOverridingClassLoader.openStreamForClass(String name) Open an InputStream for the specified class.AttributeAccessor.removeAttribute(String name) Remove the attribute identified bynameand return its value.AttributeAccessorSupport.removeAttribute(String name) Class<?>ResolvableType.resolve()Resolve this type to aClass, returningnullif the type cannot be resolved.Class<?>ResolvableType.resolveGeneric(int... indexes) static Class<?>GenericTypeResolver.resolveReturnTypeArgument(Method method, Class<?> genericType) Resolve the single type argument of the given generic type against the given target method which is assumed to return the given type or an implementation of it.static Class<?>GenericTypeResolver.resolveTypeArgument(Class<?> clazz, Class<?> genericType) Resolve the single type argument of the given generic type against the given target class which is assumed to implement the given type and possibly declare a concrete type for its type variable.static Class<?>[]GenericTypeResolver.resolveTypeArguments(Class<?> clazz, Class<?> genericType) Resolve the type arguments of the given generic type against the given target class which is assumed to implement or extend from the given type and possibly declare concrete types for its type variables.Method parameters in org.springframework.core with annotations of type NullableModifier and TypeMethodDescriptionstatic StringNestedExceptionUtils.buildMessage(String message, Throwable cause) Deprecated.as of 6.0, in favor of custom exception messages with selective inclusion of cause messagesstatic StringNestedExceptionUtils.buildMessage(String message, Throwable cause) Deprecated.as of 6.0, in favor of custom exception messages with selective inclusion of cause messagesintintbooleanCheck 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.booleanCheck 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.booleanbooleanbooleanbooleanbooleanbooleanCheck for full equality of all type resolution artifacts: type as well asTypeProviderandVariableResolver.static ResolvableTypeReturn aResolvableTypefor the specifiedClass, using the full generic type information for assignability checks.static ResolvableTypeResolvableType.forClassWithGenerics(Class<?> clazz, ResolvableType... generics) Return aResolvableTypefor the specifiedClasswith pre-declared generics.static ResolvableTypeReturn aResolvableTypefor the specifiedFieldwith a given implementation and the given nesting level.static ResolvableTypeResolvableType.forField(Field field, ResolvableType implementationType) Return aResolvableTypefor the specifiedFieldwith a given implementation.static ResolvableTypeResolvableType.forInstance(Object instance) Return aResolvableTypefor the specified instance.static ResolvableTypeResolvableType.forMethodParameter(MethodParameter methodParameter, Type targetType) Return aResolvableTypefor the specifiedMethodParameter, overriding the target type to resolve with a specific given type.static ResolvableTypeResolvableType.forMethodParameter(MethodParameter methodParameter, ResolvableType implementationType) Return aResolvableTypefor the specifiedMethodParameterwith a given implementation type.static ResolvableTypeResolvableType.forRawClass(Class<?> clazz) Return aResolvableTypefor the specifiedClass, doing assignability checks against the raw class only (analogous toClass.isAssignableFrom(java.lang.Class<?>), which this serves as a wrapper for).static ResolvableTypeReturn aResolvableTypefor the specifiedType.static ResolvableTypeResolvableType.forType(Type type, ResolvableType owner) Return aResolvableTypefor the specifiedTypebacked by the given owner type.static ResolvableTypeResolvableType.forType(Type type, ResolvableType owner) Return aResolvableTypefor the specifiedTypebacked 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 aResolvableTyperepresenting the generic parameter for the given indexes.static MethodBridgeMethodResolver.getMostSpecificMethod(Method bridgeMethod, Class<?> targetClass) Determine the most specific method for the suppliedbridge Methodin the given class hierarchy, even if not available on the local declaring class.Deprecated.Return all names of the given group of constants.Constants.getNamesForSuffix(String nameSuffix) Deprecated.Return all names of the given group of constants.Return aResolvableTypefor the specified nesting level.protected intDetermine the order value for the given object.static ThrowableNestedExceptionUtils.getRootCause(Throwable original) Retrieve the innermost cause of the given exception, if any.Deprecated.Return all values of the given group of constants.Constants.getValuesForSuffix(String nameSuffix) Deprecated.Return all values of the given group of constants.static StringConventions.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, for example,Objectreturn type or untyped collection.static StringConventions.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, for example,Objectreturn type or untyped collection.voidMethodParameter.initParameterNameDiscovery(ParameterNameDiscoverer parameterNameDiscoverer) Initialize parameter name discovery for this method parameter.static Publisher<?>CoroutinesUtils.invokeSuspendingFunction(Method method, Object target, Object... args) Invoke a suspending function and convert it toMonoorFlux.static Publisher<?>CoroutinesUtils.invokeSuspendingFunction(kotlin.coroutines.CoroutineContext context, Method method, Object target, Object... args) Invoke a suspending function and convert it toMonoorFlux.static Publisher<?>CoroutinesUtils.invokeSuspendingFunction(kotlin.coroutines.CoroutineContext context, Method method, Object target, Object... args) Invoke a suspending function and convert it toMonoorFlux.static booleanCollectionFactory.isApproximableCollectionType(Class<?> collectionType) Determine whether the given collection type is an approximable type, i.e.static booleanCollectionFactory.isApproximableMapType(Class<?> mapType) Determine whether the given map type is an approximable type, i.e.booleanResolvableType.isInstance(Object obj) Determine whether the given object is an instance of thisResolvableType.Return a variant of thisMethodParameterwhich 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 TypeGenericTypeResolver.resolveType(Type genericType, Class<?> contextClass) Resolve the given generic type against the given context class, substituting type variables as far as possible.voidAttributeAccessor.setAttribute(String name, Object value) Set the attribute defined bynameto the suppliedvalue.voidAttributeAccessorSupport.setAttribute(String name, Object value) static voidSpringProperties.setProperty(String key, String value) Programmatically set a local property, overriding an entry in thespring.propertiesfile (if any).Deprecated.Look up the given value within the given group of constants.Constants.toCodeForSuffix(Object value, String nameSuffix) Deprecated.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 thisMethodParameterwhich refers to the given containing class.Constructor parameters in org.springframework.core with annotations of type NullableModifierConstructorDescriptionConfigurableObjectInputStream(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 aNestedCheckedExceptionwith the specified detail message and nested exception.NestedCheckedException(String msg, Throwable cause) Construct aNestedCheckedExceptionwith the specified detail message and nested exception.Construct aNestedRuntimeExceptionwith the specified detail message.NestedRuntimeException(String msg, Throwable cause) Construct aNestedRuntimeExceptionwith the specified detail message and nested exception.NestedRuntimeException(String msg, Throwable cause) Construct aNestedRuntimeExceptionwith 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
Methods in org.springframework.core.annotation with annotations of type NullableModifier 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 singleAnnotationofannotationTypeon 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 singleAnnotationofannotationTypeon 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 theMergedAnnotationsAPIstatic Class<?>AnnotationUtils.findAnnotationDeclaringClassForTypes(List<Class<? extends Annotation>> annotationTypes, Class<?> clazz) Deprecated.as of 5.2 since it is superseded by theMergedAnnotationsAPIstatic <A extends Annotation>
AAnnotatedElementUtils.findMergedAnnotation(AnnotatedElement element, Class<A> annotationType) Find the first annotation of the specifiedannotationTypewithin 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 AnnotationAttributesAnnotatedElementUtils.findMergedAnnotationAttributes(AnnotatedElement element, Class<? extends Annotation> annotationType, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Find the first annotation of the specifiedannotationTypewithin the annotation hierarchy above the suppliedelementand merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributesAnnotatedElementUtils.findMergedAnnotationAttributes(AnnotatedElement element, String annotationName, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Find the first annotation of the specifiedannotationNamewithin the annotation hierarchy above the suppliedelementand merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.protected Integerprotected static ObjectAnnotatedMethod.findProvidedArgument(MethodParameter parameter, Object... providedArgs) static AnnotationAttributesReturn anAnnotationAttributesinstance based on the given map.static MultiValueMap<String,Object> AnnotatedElementUtils.getAllAnnotationAttributes(AnnotatedElement element, String annotationName) Get the annotation attributes of all annotations of the specifiedannotationNamein the annotation hierarchy above the suppliedAnnotatedElementand 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 specifiedannotationNamein the annotation hierarchy above the suppliedAnnotatedElementand store the results in aMultiValueMap.static <A extends Annotation>
AAnnotationUtils.getAnnotation(Annotation annotation, Class<A> annotationType) Get a singleAnnotationofannotationTypefrom 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 singleAnnotationofannotationTypefrom 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 singleAnnotationofannotationTypefrom 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 theMergedAnnotationsAPIstatic Annotation[]AnnotationUtils.getAnnotations(Method method) Deprecated.as of 5.2 since it is superseded by theMergedAnnotationsAPIstatic ObjectAnnotationUtils.getDefaultValue(Annotation annotation) Retrieve the default value of thevalueattribute of a single-element Annotation, given an annotation instance.static ObjectAnnotationUtils.getDefaultValue(Annotation annotation, String attributeName) Retrieve the default value of a named attribute, given an annotation instance.static ObjectAnnotationUtils.getDefaultValue(Class<? extends Annotation> annotationType) Retrieve the default value of thevalueattribute of a single-element Annotation, given theannotation type.static ObjectAnnotationUtils.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 specifiedannotationTypewithin 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 AnnotationAttributesAnnotatedElementUtils.getMergedAnnotationAttributes(AnnotatedElement element, Class<? extends Annotation> annotationType) Get the first annotation of the specifiedannotationTypewithin the annotation hierarchy above the suppliedelementand merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributesAnnotatedElementUtils.getMergedAnnotationAttributes(AnnotatedElement element, String annotationName) Get the first annotation of the specifiedannotationNamewithin the annotation hierarchy above the suppliedelementand merge that annotation's attributes with matching attributes from annotations in lower levels of the annotation hierarchy.static AnnotationAttributesAnnotatedElementUtils.getMergedAnnotationAttributes(AnnotatedElement element, String annotationName, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Get the first annotation of the specifiedannotationNamewithin the annotation hierarchy above the suppliedelementand 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, ornullif the annotation is not meta-present.<T extends Annotation>
TAnnotatedMethod.AnnotatedMethodParameter.getMethodAnnotation(Class<T> annotationType) <A extends Annotation>
AAnnotatedMethod.getMethodAnnotation(Class<A> annotationType) Return a single annotation on the underlying method, traversing its super methods if no annotation can be found on the given method itself.static IntegerReturn the order on the specifiedtype.static IntegerReturn the order on the specifiedtype, or the specified default value if none can be found.static IntegerOrderUtils.getOrder(AnnotatedElement element) Return the order declared on the specifiedelement.AnnotationAwareOrderComparator.getPriority(Object obj) This implementation retrieves an @jakarta.annotation.Priorityvalue, allowing for additional semantics over the regular @Orderannotation: typically, selecting one object over another in case of multiple matches but only one object to be returned.static IntegerOrderUtils.getPriority(Class<?> type) Return the value of thejakarta.annotation.Priorityannotation declared on the specified type, ornullif none.MergedAnnotation.getSource()Get the source that ultimately declared the root annotation, ornullif the source is not known.static ObjectAnnotationUtils.getValue(Annotation annotation) Retrieve the value of thevalueattribute of a single-element Annotation, given an annotation instance.static ObjectAnnotationUtils.getValue(Annotation annotation, String attributeName) Retrieve the value of a named attribute, given an annotation instance.Method parameters in org.springframework.core.annotation with annotations of type NullableModifier and TypeMethodDescriptionbooleanbooleanstatic <A extends Annotation>
AAnnotationUtils.findAnnotation(Class<?> clazz, Class<A> annotationType) Find a singleAnnotationofannotationTypeon 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 singleAnnotationofannotationTypeon 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 theMergedAnnotationsAPIstatic Class<?>AnnotationUtils.findAnnotationDeclaringClassForTypes(List<Class<? extends Annotation>> annotationTypes, Class<?> clazz) Deprecated.as of 5.2 since it is superseded by theMergedAnnotationsAPIstatic <A extends Annotation>
Set<A>AnnotatedElementUtils.findMergedRepeatableAnnotations(AnnotatedElement element, Class<A> annotationType, Class<? extends Annotation> containerType) Find all repeatable annotations of the specifiedannotationTypewithin 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.protected static ObjectAnnotatedMethod.findProvidedArgument(MethodParameter parameter, Object... providedArgs) static <A extends Annotation>
MergedAnnotation<A>Create a newMergedAnnotationinstance from the specified annotation.static AnnotationAttributesReturn anAnnotationAttributesinstance 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 AnnotationAttributesAnnotationUtils.getAnnotationAttributes(AnnotatedElement annotatedElement, Annotation annotation) Retrieve the given annotation's attributes as anAnnotationAttributesmap.static AnnotationAttributesAnnotationUtils.getAnnotationAttributes(AnnotatedElement annotatedElement, Annotation annotation, boolean classValuesAsString, boolean nestedAnnotationsAsMap) Retrieve the given annotation's attributes as anAnnotationAttributesmap.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 theMergedAnnotationsAPIstatic ObjectAnnotationUtils.getDefaultValue(Annotation annotation, String attributeName) Retrieve the default value of a named attribute, given an annotation instance.static ObjectAnnotationUtils.getDefaultValue(Annotation annotation, String attributeName) Retrieve the default value of a named attribute, given an annotation instance.static ObjectAnnotationUtils.getDefaultValue(Class<? extends Annotation> annotationType, String attributeName) Retrieve the default value of a named attribute, given theannotation type.static ObjectAnnotationUtils.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 specifiedannotationTypewithin 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 IntegerReturn 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 theMergedAnnotationsAPIAnnotatedMethod.getReturnValueType(Object returnValue) Return aMethodParameterfor the actual return value type.static ObjectAnnotationUtils.getValue(Annotation annotation, String attributeName) Retrieve the value of a named attribute, given an annotation instance.static ObjectAnnotationUtils.getValue(Annotation annotation, String attributeName) Retrieve the value of a named attribute, given an annotation instance.static booleanAnnotationUtils.isAnnotationMetaPresent(Class<? extends Annotation> annotationType, Class<? extends Annotation> metaAnnotationType) Deprecated.as of 5.2 since it is superseded by theMergedAnnotationsAPIstatic booleanAnnotationUtils.isCandidateClass(Class<?> clazz, Class<? extends Annotation> annotationType) Determine whether the given class is a candidate for carrying the specified annotation (at type, method or field level).static booleanAnnotationUtils.isInJavaLangAnnotationPackage(Annotation annotation) Determine if the suppliedAnnotationis defined in the core JDKjava.lang.annotationpackage.static booleanAnnotationUtils.isInJavaLangAnnotationPackage(String annotationType) Determine if theAnnotationwith the supplied name is defined in the core JDKjava.lang.annotationpackage.static booleanAnnotationUtils.isSynthesizedAnnotation(Annotation annotation) Determine if the suppliedAnnotationhas been synthesized by Spring (i.e.static <A extends Annotation>
MergedAnnotation<A>Create a newMergedAnnotationinstance 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 newMergedAnnotationinstance 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 newMergedAnnotationinstance 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 newMergedAnnotationinstance 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 newMergedAnnotationinstance 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 newMergedAnnotationinstance of the specified annotation type with attribute values supplied by a map.static RepeatableContainersRepeatableContainers.of(Class<? extends Annotation> repeatable, Class<? extends Annotation> container) Create aRepeatableContainersinstance that uses predefined repeatable and container types.static voidAnnotationUtils.postProcessAnnotationAttributes(Object annotatedElement, AnnotationAttributes attributes, boolean classValuesAsString) Post-process the suppliedAnnotationAttributes, preserving nested annotations asAnnotationinstances.static voidAnnotationUtils.postProcessAnnotationAttributes(Object annotatedElement, AnnotationAttributes attributes, boolean classValuesAsString) Post-process the suppliedAnnotationAttributes, preserving nested annotations asAnnotationinstances.static <A extends Annotation>
AAnnotationUtils.synthesizeAnnotation(A annotation, AnnotatedElement annotatedElement) Synthesize an annotation from the suppliedannotationby 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 specifiedannotationTypeand transparently enforces attribute alias semantics for annotation attributes that are annotated with@AliasFor.Constructor parameters in org.springframework.core.annotation with annotations of type NullableModifierConstructorDescriptionAnnotationAttributes(String annotationType, ClassLoader classLoader) Create a new, emptyAnnotationAttributesinstance for the specifiedannotationType. -
Uses of Nullable in org.springframework.core.codec
Methods in org.springframework.core.codec with annotations of type NullableModifier and TypeMethodDescriptiondefault TDecoder.decode(DataBuffer buffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) Decode a data buffer to an Object of type T.protected TAbstractDataBufferDecoder.decodeDataBuffer(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Deprecated.as of 5.2, please implementDecoder.decode(DataBuffer, ResolvableType, MimeType, Map)insteadMethod parameters in org.springframework.core.codec with annotations of type NullableModifier and TypeMethodDescriptionbooleanAbstractDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanByteArrayDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanByteBufferDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanCharBufferDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanDataBufferDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanDecoder.canDecode(ResolvableType elementType, MimeType mimeType) Whether the decoder supports the given target element type and the MIME type of the source stream.booleanNetty5BufferDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanNettyByteBufDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanResourceDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanStringDecoder.canDecode(ResolvableType elementType, MimeType mimeType) booleanAbstractEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanByteArrayEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanByteBufferEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanCharSequenceEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanDataBufferEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanEncoder.canEncode(ResolvableType elementType, MimeType mimeType) Whether the encoder supports the given source element type and the MIME type for the output stream.booleanNetty5BufferEncoder.canEncode(ResolvableType type, MimeType mimeType) booleanNettyByteBufEncoder.canEncode(ResolvableType type, MimeType mimeType) booleanResourceEncoder.canEncode(ResolvableType elementType, MimeType mimeType) booleanResourceRegionEncoder.canEncode(ResolvableType elementType, MimeType mimeType) final reactor.core.publisher.Flux<T>AbstractCharSequenceDecoder.decode(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) final reactor.core.publisher.Flux<T>AbstractCharSequenceDecoder.decode(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) final TAbstractCharSequenceDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) final TAbstractCharSequenceDecoder.decode(DataBuffer dataBuffer, 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) 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 aDataBufferinput stream into a Flux ofT.reactor.core.publisher.Flux<T>Decoder.decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBufferinput stream into a Flux ofT.default TDecoder.decode(DataBuffer buffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) Decode a data buffer to an Object of type T.default TDecoder.decode(DataBuffer buffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) Decode a data buffer to an Object of type T.io.netty5.buffer.BufferNetty5BufferDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) io.netty5.buffer.BufferNetty5BufferDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) io.netty.buffer.ByteBufNettyByteBufDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) io.netty.buffer.ByteBufNettyByteBufDecoder.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) protected TAbstractDataBufferDecoder.decodeDataBuffer(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Deprecated.as of 5.2, please implementDecoder.decode(DataBuffer, ResolvableType, MimeType, Map)insteadprotected TAbstractDataBufferDecoder.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 aDataBufferinput stream into a Mono ofT.reactor.core.publisher.Mono<T>Decoder.decodeToMono(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBufferinput 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) EncodeTto an outputDataBufferstream.protected abstract reactor.core.publisher.Flux<DataBuffer>AbstractSingleValueEncoder.encode(T t, DataBufferFactory dataBufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) EncodeTto an outputDataBufferstream.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 typeTinto aDataBufferoutput 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 typeTinto aDataBufferoutput 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 DataBufferEncoder.encodeValue(T value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Encode an Object of type T to a data buffer.default DataBufferEncoder.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 StringHints.getLogPrefix(Map<String, Object> hints) Obtain the hintHints.LOG_PREFIX_HINT, if present, or an empty String.static <T> THints.getRequiredHint(Map<String, Object> hints, String hintName) Obtain the value for a required hint.static booleanHints.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 voidHints.touchDataBuffer(DataBuffer buffer, Map<String, Object> hints, org.apache.commons.logging.Log logger) If the hints contain aHints.LOG_PREFIX_HINTand the given logger has DEBUG level enabled, apply the log prefix as a hint to the given buffer viaDataBufferUtils.touch(DataBuffer, Object).Constructor parameters in org.springframework.core.codec with annotations of type NullableModifierConstructorDescriptionCodecException(String msg) Create a new CodecException.CodecException(String msg, Throwable cause) Create a new CodecException.CodecException(String msg, Throwable cause) Create a new CodecException.DecodingException(String msg) Create a new DecodingException.DecodingException(String msg, Throwable cause) Create a new DecodingException.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
Methods in org.springframework.core.convert with annotations of type NullableModifier and TypeMethodDescriptionstatic TypeDescriptorTypeDescriptor.array(TypeDescriptor elementTypeDescriptor) Create a new type descriptor as an array of the specified type.<T> TConvert the givensourceto the specifiedtargetType.default ObjectConversionService.convert(Object source, TypeDescriptor targetType) Convert the givensourceto the specifiedtargetType.ConversionService.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the givensourceto the specifiedtargetType.TypeDescriptor.elementTypeDescriptor(Object element) If this type is aCollectionor an array, creates an element TypeDescriptor from the provided collection or array element.static TypeDescriptorCreate a new type descriptor for an object.<T extends Annotation>
TTypeDescriptor.getAnnotation(Class<T> annotationType) Obtain the annotation of the specifiedannotationTypethat 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 aMapand its key type is parameterized, returns the map's key type.TypeDescriptor.getMapKeyTypeDescriptor(Object mapKey) If this type is aMap, creates a mapKeyTypeDescriptorfrom the provided map key.TypeDescriptor.getMapValueTypeDescriptor()If this type is aMapand its value type is parameterized, returns the map's value type.TypeDescriptor.getMapValueTypeDescriptor(Object mapValue) If this type is aMap, creates a mapValueTypeDescriptorfrom the provided map value.Property.getReadMethod()The property getter method: for example,getFoo().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: for example,setFoo(String).TypeDescriptor.nested(int nestingLevel) Create a type descriptor for a nested type declared within this descriptor.static TypeDescriptorCreate a type descriptor for a nested type declared within the field.static TypeDescriptorCreate a type descriptor for a nested type declared within the property.static TypeDescriptorTypeDescriptor.nested(MethodParameter methodParameter, int nestingLevel) Create a type descriptor for a nested type declared within the method parameter.Cast thisTypeDescriptorto a superclass or implemented interface preserving annotations and nested type context.Method parameters in org.springframework.core.convert with annotations of type NullableModifier and TypeMethodDescriptionstatic TypeDescriptorTypeDescriptor.array(TypeDescriptor elementTypeDescriptor) Create a new type descriptor as an array of the specified type.booleanConversionService.canConvert(Class<?> sourceType, Class<?> targetType) Returntrueif objects ofsourceTypecan be converted to thetargetType.booleanConversionService.canConvert(TypeDescriptor sourceType, TypeDescriptor targetType) Returntrueif objects ofsourceTypecan be converted to thetargetType.static TypeDescriptorTypeDescriptor.collection(Class<?> collectionType, TypeDescriptor elementTypeDescriptor) Create a new type descriptor from aCollectiontype.<T> TConvert the givensourceto the specifiedtargetType.default ObjectConversionService.convert(Object source, TypeDescriptor targetType) Convert the givensourceto the specifiedtargetType.ConversionService.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the givensourceto the specifiedtargetType.ConversionService.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) Convert the givensourceto the specifiedtargetType.booleanbooleanstatic TypeDescriptorCreate a new type descriptor for an object.TypeDescriptor.getMapValueTypeDescriptor(Object mapValue) If this type is aMap, creates a mapValueTypeDescriptorfrom the provided map value.static TypeDescriptorTypeDescriptor.map(Class<?> mapType, TypeDescriptor keyTypeDescriptor, TypeDescriptor valueTypeDescriptor) Create a new type descriptor from aMaptype.static TypeDescriptorTypeDescriptor.map(Class<?> mapType, TypeDescriptor keyTypeDescriptor, TypeDescriptor valueTypeDescriptor) Create a new type descriptor from aMaptype.Narrows thisTypeDescriptorby setting its type to the class of the provided value.Cast thisTypeDescriptorto a superclass or implemented interface preserving annotations and nested type context.static TypeDescriptorCreate a new type descriptor from the given type.Constructor parameters in org.springframework.core.convert with annotations of type NullableModifierConstructorDescriptionConversionFailedException(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
Methods in org.springframework.core.convert.converter with annotations of type NullableModifier and TypeMethodDescriptionConvert the source object of typeSto 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.Method parameters in org.springframework.core.convert.converter with annotations of type NullableModifier 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
Methods in org.springframework.core.convert.support with annotations of type NullableModifier and TypeMethodDescription<T> TGenericConversionService.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) protected ObjectGenericConversionService.convertNullSource(TypeDescriptor sourceType, TypeDescriptor targetType) Template method to convert anullsource.ConvertingPropertyEditorAdapter.getAsText()protected GenericConverterGenericConversionService.getConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Hook method to look up the converter for a given sourceType/targetType pair.protected GenericConverterGenericConversionService.getDefaultConverter(TypeDescriptor sourceType, TypeDescriptor targetType) Return the default converter if no converter is found for the given sourceType/targetType pair.Method parameters in org.springframework.core.convert.support with annotations of type NullableModifier and TypeMethodDescriptionbooleanGenericConversionService.canBypassConvert(TypeDescriptor sourceType, TypeDescriptor targetType) Return whether conversion between the source type and the target type can be bypassed.booleanGenericConversionService.canConvert(Class<?> sourceType, Class<?> targetType) booleanGenericConversionService.canConvert(TypeDescriptor sourceType, TypeDescriptor targetType) <T> TGenericConversionService.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) GenericConversionService.convert(Object source, TypeDescriptor sourceType, TypeDescriptor targetType) protected ObjectGenericConversionService.convertNullSource(TypeDescriptor sourceType, TypeDescriptor targetType) Template method to convert anullsource.static voidConversionServiceFactory.registerConverters(Set<?> converters, ConverterRegistry registry) Register the given Converter objects with the given target ConverterRegistry.void -
Uses of Nullable in org.springframework.core.env
Methods in org.springframework.core.env with annotations of type NullableModifier and TypeMethodDescriptionprotected <T> TAbstractPropertyResolver.convertValueIfNecessary(Object value, Class<T> targetType) Convert the given value to the specified target type, if necessary.protected StringAbstractEnvironment.doGetActiveProfilesProperty()Return the property value for the active profiles.protected StringAbstractEnvironment.doGetDefaultProfilesProperty()Return the property value for the default profiles.Return the property source with the given name,nullif not found.static CharacterAbstractPropertyResolver.getDefaultEscapeCharacter()Get the default escape character to use when parsing strings for property placeholder resolution.CommandLinePropertySource.getOptionValues(String name) Return the collection of values associated with the command line option having the given name.JOptCommandLinePropertySource.getOptionValues(String name) Deprecated.SimpleCommandLinePropertySource.getOptionValues(String name) AbstractEnvironment.getProperty(String key) <T> TAbstractEnvironment.getProperty(String key, Class<T> targetType) AbstractPropertyResolver.getProperty(String key) final StringCommandLinePropertySource.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) Resolve the property value associated with the given key, ornullif the key cannot be resolved.<T> TPropertyResolver.getProperty(String key, Class<T> targetType) Resolve the property value associated with the given key, ornullif the key cannot be resolved.abstract ObjectPropertySource.getProperty(String name) Return the value associated with the given name, ornullif not found.PropertySource.StubPropertySource.getProperty(String name) Always returnsnull.PropertySourcesPropertyResolver.getProperty(String key) <T> TPropertySourcesPropertyResolver.getProperty(String key, Class<T> targetValueType) protected <T> TPropertySourcesPropertyResolver.getProperty(String key, Class<T> targetValueType, boolean resolveNestedPlaceholders) SystemEnvironmentPropertySource.getProperty(String name) This implementation returnstrueif a property with the given name or any underscore/uppercase variant thereof exists in this property source.protected abstract StringAbstractPropertyResolver.getPropertyAsRawString(String key) Retrieve the specified property as a raw String, i.e.protected StringPropertySourcesPropertyResolver.getPropertyAsRawString(String key) Remove and return the property source with the given name,nullif not found.Method parameters in org.springframework.core.env with annotations of type NullableModifier and TypeMethodDescriptionprotected <T> TAbstractPropertyResolver.convertValueIfNecessary(Object value, Class<T> targetType) Convert the given value to the specified target type, if necessary.booleanThisPropertySourceobject is equal to the given object if: they are the same instance thenameproperties for both objects are equalvoidAbstractEnvironment.setEscapeCharacter(Character escapeCharacter) voidAbstractPropertyResolver.setEscapeCharacter(Character escapeCharacter) Set the escape character to use to ignore the placeholder prefix and the value separator, ornullif no escaping should take place.voidConfigurablePropertyResolver.setEscapeCharacter(Character escapeCharacter) Set the escape character to use to ignore the placeholder prefix and the value separator, ornullif no escaping should take place.voidAbstractEnvironment.setValueSeparator(String valueSeparator) voidAbstractPropertyResolver.setValueSeparator(String valueSeparator) Set the separating character to be honored between placeholders replaced by this resolver and their associated default values, ornullif no such special character should be processed as a value separator.voidConfigurablePropertyResolver.setValueSeparator(String valueSeparator) Set the separating character to be honored between placeholders replaced by this resolver and their associated default values, ornullif no such special character should be processed as a value separator.Constructor parameters in org.springframework.core.env with annotations of type NullableModifierConstructorDescriptionPropertySourcesPropertyResolver(PropertySources propertySources) Create a new resolver against the given property sources. -
Uses of Nullable in org.springframework.core.io
Methods in org.springframework.core.io with annotations of type NullableModifier and TypeMethodDescriptionprotected static Stringprotected static ObjectVfsUtils.doGetVisitorAttributes()ResourceEditor.getAsText()final ClassLoaderClassPathResource.getClassLoader()Return theClassLoaderthat this resource will be obtained from.DefaultResourceLoader.getClassLoader()Return the ClassLoader to load class path resources with.ResourceLoader.getClassLoader()Expose theClassLoaderused 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.ModuleResource.getFilename()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 URLClassPathResource.resolveURL()Resolves aURLfor the underlying class path resource.Method parameters in org.springframework.core.io with annotations of type NullableModifier and TypeMethodDescriptionbooleanThis implementation compares description strings.booleanThis implementation compares the underlying byte array.booleanThis implementation compares the underlying class path locations and associated class loaders.booleanThis implementation compares the underlying description String.booleanThis implementation compares the underlying file paths.booleanThis implementation compares the underlying InputStream.booleanbooleanThis implementation compares the underlyingPathreferences.booleanThis implementation compares the underlying URL references.booleanprotected static ObjectVfsUtils.invokeVfsMethod(Method method, Object target, Object... args) voidDefaultResourceLoader.setClassLoader(ClassLoader classLoader) Specify the ClassLoader to load class path resources with, ornullfor using the thread context class loader at the time of actual resource access.Constructor parameters in org.springframework.core.io with annotations of type NullableModifierConstructorDescriptionByteArrayResource(byte[] byteArray, String description) Create a newByteArrayResourcewith a description.ClassPathContextResource(String path, ClassLoader classLoader) ClassPathResource(String path, Class<?> clazz) Create a newClassPathResourceforClassusage.ClassPathResource(String path, ClassLoader classLoader) Create a newClassPathResourceforClassLoaderusage.DefaultResourceLoader(ClassLoader classLoader) Create a new DefaultResourceLoader.DescriptiveResource(String description) Create a new DescriptiveResource.InputStreamResource(InputStream inputStream, String description) Create a newInputStreamResourcefor an existingInputStream.InputStreamResource(InputStreamSource inputStreamSource, String description) Create a newInputStreamResourcewith a lazyInputStreamfor single use.ResourceEditor(ResourceLoader resourceLoader, PropertyResolver propertyResolver) Create a new instance of theResourceEditorclass using the givenResourceLoaderandPropertyResolver.ResourceEditor(ResourceLoader resourceLoader, PropertyResolver propertyResolver, boolean ignoreUnresolvablePlaceholders) Create a new instance of theResourceEditorclass using the givenResourceLoader.UrlResource(String protocol, String location, String fragment) Create a newUrlResourcebased on a URI specification. -
Uses of Nullable in org.springframework.core.io.buffer
Method parameters in org.springframework.core.io.buffer with annotations of type Nullable -
Uses of Nullable in org.springframework.core.io.support
Fields in org.springframework.core.io.support with annotations of type NullableMethods in org.springframework.core.io.support with annotations of type NullableModifier and TypeMethodDescriptionPropertySourceDescriptor.encoding()Returns the value of theencodingrecord component.final CharsetEncodedResource.getCharset()PathMatchingResourcePatternResolver.getClassLoader()final StringEncodedResource.getEncoding()Return the encoding to use for reading from the resource, ornullif none specified.protected <T> TSpringFactoriesLoader.instantiateFactory(String implementationName, Class<T> type, SpringFactoriesLoader.ArgumentResolver argumentResolver, SpringFactoriesLoader.FailureHandler failureHandler) PropertySourceDescriptor.name()Returns the value of thenamerecord component.Class<? extends PropertySourceFactory>PropertySourceDescriptor.propertySourceFactory()Returns the value of thepropertySourceFactoryrecord component.<T> TResolve the given argument if possible.Method parameters in org.springframework.core.io.support with annotations of type NullableModifier and TypeMethodDescriptionprotected voidPathMatchingResourcePatternResolver.addAllClassLoaderJarRoots(ClassLoader classLoader, Set<Resource> result) Search allURLClassLoaderURLs for jar file references and add each to the given set of resources in the form of a pointer to the root of the jar file content.DefaultPropertySourceFactory.createPropertySource(String name, EncodedResource resource) PropertySourceFactory.createPropertySource(String name, EncodedResource resource) Create aPropertySourcethat wraps the given resource.booleanLocalizedResourceHelper.findLocalizedResource(String name, String extension, Locale locale) Find the most specific localized resource for the given name, extension and locale:static SpringFactoriesLoaderSpringFactoriesLoader.forDefaultResourceLocation(ClassLoader classLoader) Create aSpringFactoriesLoaderinstance that will load and instantiate the factory implementations from "META-INF/spring.factories", using the given class loader.static SpringFactoriesLoaderSpringFactoriesLoader.forResourceLocation(String resourceLocation, ClassLoader classLoader) Create aSpringFactoriesLoaderinstance that will load and instantiate the factory implementations from the given location, using the given class loader.static ResourcePatternResolverResourcePatternUtils.getResourcePatternResolver(ResourceLoader resourceLoader) Return a defaultResourcePatternResolverfor the givenResourceLoader.protected <T> TSpringFactoriesLoader.instantiateFactory(String implementationName, Class<T> type, SpringFactoriesLoader.ArgumentResolver argumentResolver, SpringFactoriesLoader.FailureHandler failureHandler) static booleanReturn 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 PropertiesPropertiesLoaderUtils.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)voidPropertiesLoaderSupport.setPropertiesPersister(PropertiesPersister propertiesPersister) Set the PropertiesPersister to use for parsing properties files.voidLocalizedResourceHelper.setSeparator(String separator) Set the separator to use in-between file name parts.Constructor parameters in org.springframework.core.io.support with annotations of type NullableModifierConstructorDescriptionEncodedResource(Resource resource, String encoding) Create a newEncodedResourcefor the givenResource, using the specifiedencoding.EncodedResource(Resource resource, Charset charset) Create a newEncodedResourcefor the givenResource, using the specifiedCharset.PathMatchingResourcePatternResolver(ClassLoader classLoader) Create aPathMatchingResourcePatternResolverwith aDefaultResourceLoaderand the suppliedClassLoader.PropertySourceDescriptor(List<String> locations, boolean ignoreResourceNotFound, String name, Class<? extends PropertySourceFactory> propertySourceFactory, String encoding) Creates an instance of aPropertySourceDescriptorrecord class.PropertySourceDescriptor(List<String> locations, boolean ignoreResourceNotFound, String name, Class<? extends PropertySourceFactory> propertySourceFactory, String encoding) Creates an instance of aPropertySourceDescriptorrecord class.PropertySourceDescriptor(List<String> locations, boolean ignoreResourceNotFound, String name, Class<? extends PropertySourceFactory> propertySourceFactory, String encoding) Creates an instance of aPropertySourceDescriptorrecord class.ResourceArrayPropertyEditor(ResourcePatternResolver resourcePatternResolver, PropertyResolver propertyResolver) Create a new ResourceArrayPropertyEditor with the givenResourcePatternResolverandPropertyResolver(typically anEnvironment).ResourceArrayPropertyEditor(ResourcePatternResolver resourcePatternResolver, PropertyResolver propertyResolver, boolean ignoreUnresolvablePlaceholders) Create a new ResourceArrayPropertyEditor with the givenResourcePatternResolverandPropertyResolver(typically anEnvironment).protectedSpringFactoriesLoader(ClassLoader classLoader, Map<String, List<String>> factories) Create a newSpringFactoriesLoaderinstance. -
Uses of Nullable in org.springframework.core.log
Method parameters in org.springframework.core.log with annotations of type NullableModifier and TypeMethodDescriptionstatic LogMessageBuild a lazily formatted message from the given format string and argument.static LogMessageBuild a lazily formatted message from the given format string and varargs.static LogMessageBuild a lazily formatted message from the given format string and arguments.static LogMessageBuild a lazily formatted message from the given format string and arguments.static LogMessageBuild a lazily formatted message from the given format string and arguments.static LogMessageBuild a lazily formatted message from the given format string and arguments.static LogMessageBuild a lazily formatted message from the given format string and arguments.static LogMessageBuild a lazily formatted message from the given format string and arguments.static LogMessageBuild a lazily formatted message from the given format string and arguments.static LogMessageBuild a lazily formatted message from the given format string and arguments.static LogMessageBuild a lazily formatted message from the given format string and arguments.static StringLogFormatUtils.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 iflimitLengthis set to "true".static StringLogFormatUtils.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 whenreplaceNewLinesis set. -
Uses of Nullable in org.springframework.core.metrics
Methods in org.springframework.core.metrics with annotations of type NullableModifier and TypeMethodDescriptionStartupStep.getParentId()Return, if available, the id of the parent step. -
Uses of Nullable in org.springframework.core.serializer
Constructor parameters in org.springframework.core.serializer with annotations of type Nullable -
Uses of Nullable in org.springframework.core.serializer.support
Constructor parameters in org.springframework.core.serializer.support with annotations of type Nullable -
Uses of Nullable in org.springframework.core.style
Method parameters in org.springframework.core.style with annotations of type NullableModifier and TypeMethodDescriptionAppend a field value.Style the given value, returning a String representation.voidDefaultToStringStyler.styleField(StringBuilder buffer, String fieldName, Object value) voidToStringStyler.styleField(StringBuilder buffer, String fieldName, Object value) Style a field value as a string.voidDefaultToStringStyler.styleValue(StringBuilder buffer, Object value) Constructor parameters in org.springframework.core.style with annotations of type NullableModifierConstructorDescriptionToStringCreator(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
Methods in org.springframework.core.task with annotations of type NullableModifier and TypeMethodDescriptionfinal ThreadFactorySimpleAsyncTaskExecutor.getThreadFactory()Return the external factory to use for creating new Threads, if any.Method parameters in org.springframework.core.task with annotations of type NullableModifier and TypeMethodDescriptionvoidSimpleAsyncTaskExecutor.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
Method parameters in org.springframework.core.task.support with annotations of type NullableModifier and TypeMethodDescriptionprotected voidTaskExecutorAdapter.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
Methods in org.springframework.core.type with annotations of type NullableModifier 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, ornullif the underlying class is a top-level class.StandardClassMetadata.getEnclosingClassName()ClassMetadata.getSuperClassName()Return the name of the superclass of the underlying class, ornullif there is no superclass defined.StandardClassMetadata.getSuperClassName()Method parameters in org.springframework.core.type with annotations of type Nullable -
Uses of Nullable in org.springframework.core.type.classreading
Constructor parameters in org.springframework.core.type.classreading with annotations of type NullableModifierConstructorDescriptionCachingMetadataReaderFactory(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
Methods in org.springframework.core.type.filter with annotations of type NullableModifier and TypeMethodDescriptionprotected BooleanAnnotationTypeFilter.hasAnnotation(String typeName) protected BooleanAbstractTypeHierarchyTraversingFilter.matchInterface(String interfaceName) Override this to match on interface type name.protected BooleanAnnotationTypeFilter.matchInterface(String interfaceName) protected BooleanAssignableTypeFilter.matchInterface(String interfaceName) protected BooleanAbstractTypeHierarchyTraversingFilter.matchSuperClass(String superClassName) Override this to match on supertype name.protected BooleanAnnotationTypeFilter.matchSuperClass(String superClassName) protected BooleanAssignableTypeFilter.matchSuperClass(String superClassName) protected BooleanAssignableTypeFilter.matchTargetType(String typeName) Constructor parameters in org.springframework.core.type.filter with annotations of type NullableModifierConstructorDescriptionAspectJTypeFilter(String typePatternExpression, ClassLoader classLoader) -
Uses of Nullable in org.springframework.util
Fields in org.springframework.util with annotations of type NullableMethods in org.springframework.util with annotations of type NullableModifier and TypeMethodDescriptionLinkedCaseInsensitiveMap.computeIfAbsent(String key, Function<? super String, ? extends V> mappingFunction) static String[]StringUtils.concatenateStringArrays(String[] array1, String[] array2) Concatenate the givenStringarrays into one, with overlapping array elements included twice.StopWatch.currentTaskName()Get the name of the currently running task, if any.static ObjectSerializationUtils.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> TConcurrentReferenceHashMap.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 Fieldstatic Fieldstatic FieldReflectionUtils.findFieldIgnoreCase(Class<?> clazz, String name) static <E> ECollectionUtils.findFirstMatch(Collection<?> source, Collection<E> candidates) Return the first element in 'candidates' that is contained in 'source'.protected MethodMethodInvoker.findMatchingMethod()Find a matching method with the specified name for the specified arguments.static MethodReflectionUtils.findMethod(Class<?> clazz, String name) Attempt to find aMethodon the supplied class with the supplied name and no parameters.static MethodReflectionUtils.findMethod(Class<?> clazz, String name, Class<?>... paramTypes) Attempt to find aMethodon the supplied class with the supplied name and parameter types.static ObjectCollectionUtils.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> TCollectionUtils.findValueOfType(Collection<?> collection, Class<T> type) Find a single value of the given type in the given Collection.static <T> TCollectionUtils.firstElement(List<T> list) Retrieve the first element of the given List, accessing the zero index.static <T> TCollectionUtils.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, ornullif the entry is no longer available.MimeType.getCharset()Return the character set, as indicated by acharsetparameter, 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 ClassLoaderClassUtils.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 StringClassUtils.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 ObjectGet the field represented by the suppliedfield objecton the specifiedtarget object.static StringStringUtils.getFilename(String path) Extract the filename from the given Java resource path, for example,"mypath/myfile.txt" → "myfile.txt".static StringStringUtils.getFilenameExtension(String path) Extract the filename extension from the given Java resource path, for example, "mypath/myfile.txt" → "txt".Return the first value for the given key.ConcurrentReferenceHashMap.Entry.getKey()static MethodClassUtils.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, ornullif 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.Referenceto theConcurrentReferenceHashMap.Entryfor the specifiedkey, ornullif not found.ConcurrentReferenceHashMap.Segment.getReference(Object key, int hash, ConcurrentReferenceHashMap.Restructure restructure) static MethodClassUtils.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 (ornullfor the default group).ConcurrentReferenceHashMap.Entry.getValue()MethodInvoker.invoke()Invoke the specified method.static ObjectReflectionUtils.invokeMethod(Method method, Object target) Invoke the specifiedMethodagainst the supplied target object with no arguments.static ObjectReflectionUtils.invokeMethod(Method method, Object target, Object... args) Invoke the specifiedMethodagainst the supplied target object with the supplied arguments.static <T> TCollectionUtils.lastElement(List<T> list) Retrieve the last element of the given List, accessing the highest index.static <T> TCollectionUtils.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 ClassLoaderClassUtils.overrideThreadContextClassLoader(ClassLoader classLoaderToUse) Override the thread context ClassLoader with the environment's bean ClassLoader if necessary, i.e.static LocaleStringUtils.parseLocale(String localeValue) Parse the givenStringvalue into aLocale, accepting theLocale.toString()format as well as BCP 47 language tags as specified byLocale.forLanguageTag(java.lang.String).static LocaleStringUtils.parseLocaleString(String localeString) Parse the givenStringrepresentation into aLocale.ConcurrentReferenceHashMap.ReferenceManager.pollForPurge()Return any reference that has been garbage collected and can be purged from the underlying structure ornullif no references need purging.ConcurrentReferenceHashMap.putIfAbsent(K key, V value) LinkedCaseInsensitiveMap.putIfAbsent(String key, V value) MultiValueMapAdapter.putIfAbsent(K key, List<V> value) static StringQuote the givenStringwith single quotes.static ObjectStringUtils.quoteIfString(Object obj) Turn the given Object into aStringwith single quotes if it is aString; keeping the Object as-is else.booleanImmediately 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 aStringat the first occurrence of the delimiter.static PropertiesStringUtils.splitArrayElementsIntoProperties(String[] array, String delimiter) Take an array of strings and split each element based on the given delimiter.static PropertiesStringUtils.splitArrayElementsIntoProperties(String[] array, String delimiter, String charsToDelete) Take an array of strings and split each element based on the given delimiter.static ObjectObjectUtils.unwrapOptional(Object obj) Unwrap the given object which is potentially aOptional.Method parameters in org.springframework.util with annotations of type NullableModifier and TypeMethodDescriptionvoidAdd the given single value to the current list of values for the given key.voiddefault voidMultiValueMap.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 givenStringto the givenStringarray, returning a new array consisting of the input array contents plus the givenString.static StringStringUtils.arrayToCommaDelimitedString(Object[] arr) Convert aStringarray into a comma delimitedString(i.e., CSV).static StringStringUtils.arrayToDelimitedString(Object[] arr, String delim) Convert aStringarray into a delimitedString(for example, CSV).static List<?>CollectionUtils.arrayToList(Object source) Convert the supplied array into a List.static StringClassUtils.classNamesToString(Collection<Class<?>> classes) Build a String that consists of the names of the classes/interfaces in the given collection.static StringClassUtils.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 StringStringUtils.collectionToCommaDelimitedString(Collection<?> coll) Convert aCollectioninto a delimitedString(for example, CSV).static StringStringUtils.collectionToDelimitedString(Collection<?> coll, String delim) Convert aCollectioninto a delimitedString(for example, CSV).static StringStringUtils.collectionToDelimitedString(Collection<?> coll, String delim, String prefix, String suffix) Convert aCollectionto a delimitedString(for example, CSV).StringUtils.commaDelimitedListToSet(String str) Convert a comma delimited list (for example, a row from a CSV file) into a set.static String[]StringUtils.commaDelimitedListToStringArray(String str) Convert a comma delimited list (for example, a row from a CSV file) into an array of strings.static <K,V> Map<K, V> CollectionUtils.compositeMap(Map<K, V> first, Map<K, V> second, BiFunction<K, V, V> putFunction, Consumer<Map<K, V>> putAllFunction) Return a map that combines the provided maps.static <K,V> Map<K, V> CollectionUtils.compositeMap(Map<K, V> first, Map<K, V> second, BiFunction<K, V, V> putFunction, Consumer<Map<K, V>> putAllFunction) Return a map that combines the provided maps.static String[]StringUtils.concatenateStringArrays(String[] array1, String[] array2) Concatenate the givenStringarrays into one, with overlapping array elements included twice.static String[]StringUtils.concatenateStringArrays(String[] array1, String[] array2) Concatenate the givenStringarrays into one, with overlapping array elements included twice.static booleanCollectionUtils.contains(Enumeration<?> enumeration, Object element) Check whether the given Enumeration contains the given element.static booleanCheck whether the given Iterator contains the given element.static booleanObjectUtils.containsElement(Object[] array, Object element) Check whether the given array contains the given element.static booleanCollectionUtils.containsInstance(Collection<?> collection, Object element) Check whether the given Collection contains the given element instance.booleanConcurrentReferenceHashMap.containsKey(Object key) static booleanStringUtils.containsWhitespace(CharSequence str) Check whether the givenCharSequencecontains any whitespace characters.static booleanStringUtils.containsWhitespace(String str) Check whether the givenStringcontains 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 StringFileCopyUtils.copyToString(Reader in) Copy the contents of the given Reader into a String.static StringStreamUtils.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 StringDelete any character in a givenString.static booleanFileSystemUtils.deleteRecursively(File root) Delete the suppliedFile- for directories, recursively delete any nested directories or files as well.static booleanFileSystemUtils.deleteRecursively(Path root) Delete the suppliedPath— for directories, recursively delete any nested directories or files as well.static String[]StringUtils.delimitedListToStringArray(String str, String delimiter) Take aStringthat is a delimited list and convert it into aStringarray.static String[]StringUtils.delimitedListToStringArray(String str, String delimiter) Take aStringthat is a delimited list and convert it into aStringarray.static String[]StringUtils.delimitedListToStringArray(String str, String delimiter, String charsToDelete) Take aStringthat is a delimited list and convert it into aStringarray.static String[]StringUtils.delimitedListToStringArray(String str, String delimiter, String charsToDelete) Take aStringthat is a delimited list and convert it into aStringarray.static String[]StringUtils.delimitedListToStringArray(String str, String delimiter, String charsToDelete) Take aStringthat is a delimited list and convert it into aStringarray.static ObjectSerializationUtils.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 voidAssert.doesNotContain(String textToSearch, String substring, String message) Assert that the given text does not contain the given substring.static voidAssert.doesNotContain(String textToSearch, String substring, Supplier<String> messageSupplier) Assert that the given text does not contain the given substring.protected booleanAntPathMatcher.doMatch(String pattern, String path, boolean fullMatch, Map<String, String> uriTemplateVariables) Actually match the givenpathagainst the givenpattern.protected booleanAntPathMatcher.doMatch(String pattern, String path, boolean fullMatch, Map<String, String> uriTemplateVariables) Actually match the givenpathagainst the givenpattern.<T> TConcurrentReferenceHashMap.Segment.doTask(int hash, Object key, ConcurrentReferenceHashMap<K, V>.org.springframework.util.ConcurrentReferenceHashMap.Task<T> task) Apply an update operation to this segment.static voidReflectionUtils.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 voidReflectionUtils.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 intStreamUtils.drain(InputStream in) Drain the remaining content of the givenInputStream.static booleanStringUtils.endsWithIgnoreCase(String str, String suffix) Test if the givenStringends with the specified suffix, ignoring upper/lower case.static booleanStringUtils.endsWithIgnoreCase(String str, String suffix) Test if the givenStringends with the specified suffix, ignoring upper/lower case.booleanbooleanbooleanbooleanbooleanbooleanMimeType.equalsTypeAndSubtype(MimeType other) Similar toMimeType.equals(Object)but based on the type and subtype only, i.e.static Fieldstatic Fieldstatic MethodReflectionUtils.findMethod(Class<?> clazz, String name, Class<?>... paramTypes) Attempt to find aMethodon the supplied class with the supplied name and parameter types.static <T> TCollectionUtils.findValueOfType(Collection<?> collection, Class<T> type) Find a single value of the given type in the given Collection.static <T> TCollectionUtils.firstElement(List<T> list) Retrieve the first element of the given List, accessing the zero index.static <T> TCollectionUtils.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 (for example, "int") and array class names (for example, "String[]").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 StringClassUtils.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 StringObjectUtils.getDisplayString(Object obj) Return a content-based String representation ifobjis notnull; otherwise returns an empty String.static ObjectGet the field represented by the suppliedfield objecton the specifiedtarget object.static StringStringUtils.getFilename(String path) Extract the filename from the given Java resource path, for example,"mypath/myfile.txt" → "myfile.txt".static StringStringUtils.getFilenameExtension(String path) Extract the filename extension from the given Java resource path, for example, "mypath/myfile.txt" → "txt".protected intGet the hash for a given object, apply an additional hash function to reduce collisions.static MethodClassUtils.getInterfaceMethodIfPossible(Method method, Class<?> targetClass) Determine a corresponding interface method for the given method handle, if possible.static MethodDetermine whether the given class has a public method with the given signature, and return it if available (else throws anIllegalStateException).static MethodClassUtils.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 MethodClassUtils.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 — for example, the method may beIFoo.bar(), and the target class may beDefaultFoo.ConcurrentReferenceHashMap.getOrDefault(Object key, V defaultValue) ConcurrentReferenceHashMap.getOrDefault(Object key, V defaultValue) static MethodClassUtils.getPubliclyAccessibleMethodIfPossible(Method method, Class<?> targetClass) Get the first publicly accessible method in the supplied method's type hierarchy that has a method signature equivalent to the supplied method, if possible.static StringClassUtils.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.Referenceto theConcurrentReferenceHashMap.Entryfor the specifiedkey, ornullif 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 voidAssert that the given String is not empty; that is, it must not benulland not the empty String.static voidAssert that the given String is not empty; that is, it must not benulland not the empty String.static booleanStringUtils.hasLength(CharSequence str) Check that the givenCharSequenceis neithernullnor of length 0.static booleanCheck that the givenStringis neithernullnor of length 0.static voidAssert that the given String contains valid text content; that is, it must not benulland must contain at least one non-whitespace character.static voidAssert that the given String contains valid text content; that is, it must not benulland must contain at least one non-whitespace character.static booleanStringUtils.hasText(CharSequence str) Check whether the givenCharSequencecontains actual text.static booleanCheck whether the givenStringcontains actual text.static StringObjectUtils.identityToString(Object obj) Return a String representation of an object's overall identity.booleanIndicate whether this MIME Type includes the given MIME Type.static ObjectReflectionUtils.invokeMethod(Method method, Object target) Invoke the specifiedMethodagainst the supplied target object with no arguments.static ObjectReflectionUtils.invokeMethod(Method method, Object target, Object... args) Invoke the specifiedMethodagainst the supplied target object with the supplied arguments.static ObjectReflectionUtils.invokeMethod(Method method, Object target, Object... args) Invoke the specifiedMethodagainst the supplied target object with the supplied arguments.static booleanDetermine whether the given object is an array: either an Object array or a primitive array.static voidAssert.isAssignable(Class<?> superType, Class<?> subType) Assert thatsuperType.isAssignableFrom(subType)istrue.static voidAssert.isAssignable(Class<?> superType, Class<?> subType, String message) Assert thatsuperType.isAssignableFrom(subType)istrue.static voidAssert.isAssignable(Class<?> superType, Class<?> subType, Supplier<String> messageSupplier) Assert thatsuperType.isAssignableFrom(subType)istrue.static booleanTypeUtils.isAssignableBound(Type lhsType, Type rhsType) static booleanTypeUtils.isAssignableBound(Type lhsType, Type rhsType) static booleanClassUtils.isAssignableValue(Class<?> type, Object value) Determine if the given type is assignable from the given value, assuming setting by reflection.static booleanClassUtils.isCacheSafe(Class<?> clazz, ClassLoader classLoader) Check whether the given class is cache-safe in the given context, i.e.static booleanClassUtils.isCglibProxyClass(Class<?> clazz) Deprecated.as of 5.2, in favor of custom (possibly narrower) checks or simply a check for containingClassUtils.CGLIB_CLASS_SEPARATORstatic booleanClassUtils.isCglibProxyClassName(String className) Deprecated.as of 5.2, in favor of custom (possibly narrower) checks or simply a check for containingClassUtils.CGLIB_CLASS_SEPARATORbooleanMimeType.isCompatibleWith(MimeType other) Indicate whether this MIME Type is compatible with the given MIME Type.static booleanObjectUtils.isCompatibleWithThrowsClause(Throwable ex, Class<?>... declaredExceptions) Check whether the given exception is compatible with the specified exception types, as declared in athrowsclause.static booleanCollectionUtils.isEmpty(Collection<?> collection) Returntrueif the supplied Collection isnullor empty.static booleanReturntrueif the supplied Map isnullor empty.static booleanDetermine whether the given object is empty.static booleanDetermine whether the given array is empty: i.e.static booleanDeprecated.as of 5.3, in favor ofStringUtils.hasLength(String)andStringUtils.hasText(String)(orObjectUtils.isEmpty(Object))static booleanReflectionUtils.isEqualsMethod(Method method) Determine whether the given method is an "equals" method.static booleanReflectionUtils.isHashCodeMethod(Method method) Determine whether the given method is a "hashCode" method.static voidAssert.isInstanceOf(Class<?> type, Object obj) Assert that the provided object is an instance of the provided class.static voidAssert.isInstanceOf(Class<?> type, Object obj, String message) Assert that the provided object is an instance of the provided class.static voidAssert.isInstanceOf(Class<?> type, Object obj, Supplier<String> messageSupplier) Assert that the provided object is an instance of the provided class.static voidAssert that an object isnull.static voidAssert that an object isnull.static booleanReflectionUtils.isObjectMethod(Method method) Determine whether the given method is originally declared byObject.booleanstatic booleanClassUtils.isPresent(String className, ClassLoader classLoader) Determine whether theClassidentified by the supplied name is present and can be loaded.static booleanReflectionUtils.isToStringMethod(Method method) Determine whether the given method is a "toString" method.static booleanReturn whether the given resource location is a URL: either a special "classpath" pseudo URL or a standard URL.static booleanClassUtils.isVisible(Class<?> clazz, ClassLoader classLoader) Check whether the given class is visible in the given ClassLoader.static booleanClassUtils.isVoidType(Class<?> type) Determine if the given type represents eitherVoidorvoid.static <T> TCollectionUtils.lastElement(List<T> list) Retrieve the last element of the given List, accessing the highest index.static <T> TCollectionUtils.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 booleanStringUtils.matchesCharacter(String str, char singleCharacter) Test if the givenStringmatches the given single character.static booleanClassUtils.matchesTypeName(Class<?> clazz, String typeName) Check whether the given class matches the user-specified type name.booleanAntPathMatcher.AntPathStringMatcher.matchStrings(String str, Map<String, String> uriTemplateVariables) Main entry point.static <E> voidCollectionUtils.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 voidAssert.noNullElements(Object[] array, String message) Assert that an array contains nonullelements.static voidAssert.noNullElements(Object[] array, Supplier<String> messageSupplier) Assert that an array contains nonullelements.static voidAssert.noNullElements(Collection<?> collection, String message) Assert that a collection contains nonullelements.static voidAssert.noNullElements(Collection<?> collection, Supplier<String> messageSupplier) Assert that a collection contains nonullelements.static voidAssert that an array contains elements; that is, it must not benulland must contain at least one element.static voidAssert that an array contains elements; that is, it must not benulland must contain at least one element.static voidAssert.notEmpty(Collection<?> collection, String message) Assert that a collection contains elements; that is, it must not benulland must contain at least one element.static voidAssert.notEmpty(Collection<?> collection, Supplier<String> messageSupplier) Assert that a collection contains elements; that is, it must not benulland must contain at least one element.static voidAssert that a Map contains entries; that is, it must not benulland must contain at least one entry.static voidAssert that a Map contains entries; that is, it must not benulland must contain at least one entry.static voidAssert that an object is notnull.static voidAssert that an object is notnull.static StringObjectUtils.nullSafeClassName(Object obj) Determine the class name for the given object.static StringObjectUtils.nullSafeConciseToString(Object obj) Generate a null-safe, concise string representation of the supplied object as described below.static booleanObjectUtils.nullSafeEquals(Object o1, Object o2) Determine if the given objects are equal, returningtrueif both arenullorfalseif only one isnull.static booleanObjectUtils.nullSafeEquals(Object o1, Object o2) Determine if the given objects are equal, returningtrueif both arenullorfalseif only one isnull.static intObjectUtils.nullSafeHash(Object... elements) Return a hash code for the given elements, delegating toObjectUtils.nullSafeHashCode(Object)for each element.static intObjectUtils.nullSafeHashCode(boolean[] array) Deprecated.as of 6.1 in favor ofArrays.hashCode(boolean[])static intObjectUtils.nullSafeHashCode(byte[] array) Deprecated.as of 6.1 in favor ofArrays.hashCode(byte[])static intObjectUtils.nullSafeHashCode(char[] array) Deprecated.as of 6.1 in favor ofArrays.hashCode(char[])static intObjectUtils.nullSafeHashCode(double[] array) Deprecated.as of 6.1 in favor ofArrays.hashCode(double[])static intObjectUtils.nullSafeHashCode(float[] array) Deprecated.as of 6.1 in favor ofArrays.hashCode(float[])static intObjectUtils.nullSafeHashCode(int[] array) Deprecated.as of 6.1 in favor ofArrays.hashCode(int[])static intObjectUtils.nullSafeHashCode(long[] array) Deprecated.as of 6.1 in favor ofArrays.hashCode(long[])static intObjectUtils.nullSafeHashCode(short[] array) Deprecated.as of 6.1 in favor ofArrays.hashCode(short[])static intObjectUtils.nullSafeHashCode(Object obj) Return a hash code for the given object, typically the value ofObject.hashCode().static intObjectUtils.nullSafeHashCode(Object[] array) Deprecated.as of 6.1 in favor ofArrays.hashCode(Object[])static StringObjectUtils.nullSafeToString(boolean[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(byte[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(char[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(double[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(float[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(int[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(long[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(short[] array) Return a String representation of the contents of the specified array.static StringObjectUtils.nullSafeToString(Object obj) Return a String representation of the specified Object.static StringObjectUtils.nullSafeToString(Object[] array) Return a String representation of the contents of the specified array.static ClassLoaderClassUtils.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 giventextinto aNumberinstance of the given target class, using the suppliedNumberFormat.ConcurrentReferenceHashMap.putIfAbsent(K key, V value) ConcurrentReferenceHashMap.putIfAbsent(K key, V value) LinkedCaseInsensitiveMap.putIfAbsent(String key, V value) static StringQuote the givenStringwith single quotes.static ObjectStringUtils.quoteIfString(Object obj) Turn the given Object into aStringwith single quotes if it is aString; keeping the Object as-is else.booleanbooleanbooleanbooleanbooleanstatic StringReplace 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 voidReflectionUtils.rethrowException(Throwable throwable) Rethrow the givenexception, which is presumably the target exception of anInvocationTargetException.static voidReflectionUtils.rethrowRuntimeException(Throwable ex) Rethrow the givenexception, which is presumably the target exception of anInvocationTargetException.static byte[]Serialize the given object to a byte array.voidSet the given single value under the given key.voidvoidMethodInvoker.setArguments(Object... arguments) Set arguments for the method invocation.static voidSet the field represented by the supplied field object on the specified target object to the specifiedvalue.static voidSet the field represented by the supplied field object on the specified target object to the specifiedvalue.voidAntPathMatcher.setPathSeparator(String pathSeparator) Set the path separator to use for pattern parsing.voidMethodInvoker.setTargetClass(Class<?> targetClass) Set the target class on which to call the target method.voidMethodInvoker.setTargetMethod(String targetMethod) Set the name of the method to be invoked.voidMethodInvoker.setTargetObject(Object targetObject) Set the target object on which to call the target method.voidCustomizableThreadCreator.setThreadGroup(ThreadGroup threadGroup) Specify the thread group that threads should be created in.voidCustomizableThreadCreator.setThreadNamePrefix(String threadNamePrefix) Specify the prefix to use for the names of newly created threads.static booleanPatternMatchUtils.simpleMatch(String[] patterns, String str) Match a String against the given patterns, supporting direct equality as well as the following simple pattern styles:xxx*,*xxx,*xxx*, andxxx*yyy(with an arbitrary number of pattern parts).static booleanPatternMatchUtils.simpleMatch(String[] patterns, String str) Match a String against the given patterns, supporting direct equality as well as the following simple pattern styles:xxx*,*xxx,*xxx*, andxxx*yyy(with an arbitrary number of pattern parts).static booleanPatternMatchUtils.simpleMatch(String pattern, String str) Match a String against the given pattern, supporting direct equality as well as the following simple pattern styles:xxx*,*xxx,*xxx*, andxxx*yyy(with an arbitrary number of pattern parts).static booleanPatternMatchUtils.simpleMatch(String pattern, String str) Match a String against the given pattern, supporting direct equality as well as the following simple pattern styles:xxx*,*xxx,*xxx*, andxxx*yyy(with an arbitrary number of pattern parts).static booleanPatternMatchUtils.simpleMatchIgnoreCase(String[] patterns, String str) Variant ofPatternMatchUtils.simpleMatch(String[], String)that ignores upper/lower case.static booleanPatternMatchUtils.simpleMatchIgnoreCase(String[] patterns, String str) Variant ofPatternMatchUtils.simpleMatch(String[], String)that ignores upper/lower case.static booleanPatternMatchUtils.simpleMatchIgnoreCase(String pattern, String str) Variant ofPatternMatchUtils.simpleMatch(String, String)that ignores upper/lower case.static booleanPatternMatchUtils.simpleMatchIgnoreCase(String pattern, String str) Variant ofPatternMatchUtils.simpleMatch(String, String)that ignores upper/lower case.static String[]Split aStringat the first occurrence of the delimiter.static String[]Split aStringat the first occurrence of the delimiter.static PropertiesStringUtils.splitArrayElementsIntoProperties(String[] array, String delimiter, String charsToDelete) Take an array of strings and split each element based on the given delimiter.static booleanStringUtils.startsWithIgnoreCase(String str, String prefix) Test if the givenStringstarts with the specified prefix, ignoring upper/lower case.static booleanStringUtils.startsWithIgnoreCase(String str, String prefix) Test if the givenStringstarts with the specified prefix, ignoring upper/lower case.static Class<?>[]ClassUtils.toClassArray(Collection<Class<?>> collection) Copy the givenCollectioninto aClassarray.static <E> Iterator<E>CollectionUtils.toIterator(Enumeration<E> enumeration) Adapt anEnumerationto 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, to an array of primitive wrapper objects).static String[]StringUtils.toStringArray(Collection<String> collection) Copy the givenCollectioninto aStringarray.static String[]StringUtils.toStringArray(Enumeration<String> enumeration) Copy the givenEnumerationinto aStringarray.static ObjectObjectUtils.unwrapOptional(Object obj) Unwrap the given object which is potentially aOptional.Constructor parameters in org.springframework.util with annotations of type NullableModifierConstructorDescriptionCustomizableThreadCreator(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 aLinkedHashMapwith 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 newMimeTypefor 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) Deprecated, for removal: This API element is subject to removal in a future version.as of 6.2, in favor ofPropertyPlaceholderHelper(String, String, String, Character, boolean)PropertyPlaceholderHelper(String placeholderPrefix, String placeholderSuffix, String valueSeparator, Character escapeCharacter, boolean ignoreUnresolvablePlaceholders) Create a newPropertyPlaceholderHelperthat uses the supplied prefix and suffix.PropertyPlaceholderHelper(String placeholderPrefix, String placeholderSuffix, String valueSeparator, Character escapeCharacter, boolean ignoreUnresolvablePlaceholders) Create a newPropertyPlaceholderHelperthat uses the supplied prefix and suffix. -
Uses of Nullable in org.springframework.util.comparator
Method parameters in org.springframework.util.comparator with annotations of type Nullable -
Uses of Nullable in org.springframework.util.concurrent
Methods in org.springframework.util.concurrent with annotations of type NullableModifier and TypeMethodDescriptionprotected abstract TDeprecated.Adapts the given adaptee's result into T.FutureAdapter.get()Deprecated.Deprecated.SettableListenableFuture.get()Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the value.Deprecated, for removal: This API element is subject to removal in a future version.Retrieve the value.Method parameters in org.springframework.util.concurrent with annotations of type NullableModifier and TypeMethodDescriptionvoidDeprecated, for removal: This API element is subject to removal in a future version.Called when theListenableFuturecompletes with success.booleanDeprecated, for removal: This API element is subject to removal in a future version.Set the value of this future.voidDeprecated, for removal: This API element is subject to removal in a future version.Trigger aSuccessCallback.onSuccess(Object)call on all added callbacks with the given result.Constructor parameters in org.springframework.util.concurrent with annotations of type NullableModifierConstructorDescriptionListenableFutureTask(Runnable runnable, T result) Deprecated, for removal: This API element is subject to removal in a future version.Create aListenableFutureTaskthat 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
Methods in org.springframework.util.function with annotations of type NullableModifier and TypeMethodDescriptionSingletonSupplier.get()Get the shared singleton instance for this supplier.static <T> SingletonSupplier<T>SingletonSupplier.ofNullable(Supplier<T> supplier) Build aSingletonSupplierwith the given supplier.static <T> SingletonSupplier<T>SingletonSupplier.ofNullable(T instance) Build aSingletonSupplierwith the given singleton instance.static ObjectResolve a givenSupplier, getting its result or immediately returning the given Object as-is if not aSupplier.static <T> TResolve the givenSupplier, getting its result or immediately returningnullif the supplier itself wasnull.Method parameters in org.springframework.util.function with annotations of type NullableModifier and TypeMethodDescriptionstatic <T> SingletonSupplier<T>SingletonSupplier.ofNullable(Supplier<T> supplier) Build aSingletonSupplierwith the given supplier.static <T> SingletonSupplier<T>SingletonSupplier.ofNullable(T instance) Build aSingletonSupplierwith the given singleton instance.static ObjectResolve a givenSupplier, getting its result or immediately returning the given Object as-is if not aSupplier.static <T> TResolve the givenSupplier, getting its result or immediately returningnullif the supplier itself wasnull.Constructor parameters in org.springframework.util.function with annotations of type NullableModifierConstructorDescriptionSingletonSupplier(Supplier<? extends T> instanceSupplier, Supplier<? extends T> defaultSupplier) Build aSingletonSupplierwith the given instance supplier and a default supplier for the case when the instance isnull.SingletonSupplier(T instance, Supplier<? extends T> defaultSupplier) Build aSingletonSupplierwith the given singleton instance and a default supplier for the case when the instance isnull. -
Uses of Nullable in org.springframework.util.unit
Method parameters in org.springframework.util.unit with annotations of type Nullable -
Uses of Nullable in org.springframework.util.xml
Methods in org.springframework.util.xml with annotations of type NullableModifier and TypeMethodDescriptionstatic ElementDomUtils.getChildElementByTagName(Element ele, String childEleName) Utility method that returns the first child element identified by its name.static StringDomUtils.getChildElementValueByTagName(Element ele, String childEleName) Utility method that returns the first child element value identified by its name.static XMLEventReaderStaxUtils.getXMLEventReader(Source source) Return theXMLEventReaderfor the given StAX Source.static XMLEventWriterStaxUtils.getXMLEventWriter(Result result) Return theXMLEventWriterfor the given StAX Result.static XMLStreamReaderStaxUtils.getXMLStreamReader(Source source) Return theXMLStreamReaderfor the given StAX Source.static XMLStreamWriterStaxUtils.getXMLStreamWriter(Result result) Return theXMLStreamWriterfor the given StAX Result.Method parameters in org.springframework.util.xml with annotations of type NullableModifier and TypeMethodDescriptionvoidSimpleNamespaceContext.removeBinding(String prefix) Remove the given prefix from this context.