Uses of Class
io.microsphere.annotation.Nullable
-
Packages that use Nullable Package Description io.microsphere.beans io.microsphere.classloading io.microsphere.collection io.microsphere.convert io.microsphere.io io.microsphere.json Fork the source code from org.jsonio.microsphere.lang io.microsphere.lang.function io.microsphere.management io.microsphere.metadata io.microsphere.net io.microsphere.reflect io.microsphere.util io.microsphere.util.jar -
-
Uses of Nullable in io.microsphere.beans
Methods in io.microsphere.beans with annotations of type Nullable Modifier and Type Method Description java.lang.String
ConfigurationProperty.Metadata. getDeclaredClass()
Get the declared class name.java.lang.String
ConfigurationProperty.Metadata. getDeclaredField()
Get the declared field name.java.lang.Object
ConfigurationProperty. getDefaultValue()
java.lang.Object
BeanProperty. getValue()
java.lang.Object
ConfigurationProperty. getValue()
Method parameters in io.microsphere.beans with annotations of type Nullable Modifier and Type Method Description void
ConfigurationProperty.Metadata. setDeclaredClass(java.lang.String declaredClass)
Set the declared class name.void
ConfigurationProperty.Metadata. setDeclaredField(java.lang.String declaredField)
Set the declared field name.void
ConfigurationProperty. setDefaultValue(java.lang.Object defaultValue)
void
ConfigurationProperty. setValue(java.lang.Object value)
-
Uses of Nullable in io.microsphere.classloading
Methods in io.microsphere.classloading with annotations of type Nullable Modifier and Type Method Description java.net.URL
Artifact. getLocation()
Get the location of artifact resourcejava.lang.String
Artifact. getVersion()
Get the versionprotected java.io.InputStream
StreamArtifactResourceResolver. readArtifactMetadataDataFromArchiveFile(java.io.File archiveFile)
protected java.io.InputStream
StreamArtifactResourceResolver. readArtifactMetadataDataFromDirectory(java.io.File directory)
protected java.io.InputStream
StreamArtifactResourceResolver. readArtifactMetadataDataFromFile(java.io.File archiveFile)
protected java.io.InputStream
StreamArtifactResourceResolver. readArtifactMetadataDataFromResource(java.net.URL resourceURL, java.lang.ClassLoader classLoader)
Artifact
ArtifactResourceResolver. resolve(java.net.URL resourceURL)
Resolve an instanceArtifact
fromthe resource
of artifact.Method parameters in io.microsphere.classloading with annotations of type Nullable Modifier and Type Method Description static Artifact
Artifact. create(java.lang.String artifactId, java.lang.String version)
static Artifact
Artifact. create(java.lang.String artifactId, java.lang.String version, java.net.URL location)
static Artifact
Artifact. create(java.lang.String artifactId, java.lang.String version, java.net.URL location)
static MavenArtifact
MavenArtifact. create(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
static MavenArtifact
MavenArtifact. create(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.net.URL location)
static MavenArtifact
MavenArtifact. create(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.net.URL location)
default java.net.URL[]
URLClassPathHandle. getURLs(java.lang.ClassLoader classLoader)
Get the Class-Path URLs from the specifiedClassLoader
default boolean
URLClassPathHandle. initializeLoaders(java.lang.ClassLoader classLoader)
Initialize the loaders of URL Class-Path fromURLClassLoader
boolean
URLClassPathHandle. removeURL(java.lang.ClassLoader classLoader, java.net.URL url)
Remove the Class-PathURL
from the specifiedClassLoader
boolean
URLClassPathHandle. removeURL(java.lang.ClassLoader classLoader, java.net.URL url)
Remove the Class-PathURL
from the specifiedClassLoader
Artifact
ArtifactResourceResolver. resolve(java.net.URL resourceURL)
Resolve an instanceArtifact
fromthe resource
of artifact.Constructor parameters in io.microsphere.classloading with annotations of type Nullable Constructor Description Artifact(java.lang.String artifactId, java.lang.String version, java.net.URL location)
Artifact(java.lang.String artifactId, java.lang.String version, java.net.URL location)
ArtifactDetector(java.lang.ClassLoader classLoader)
BannedArtifactClassLoadingExecutor(java.lang.ClassLoader classLoader)
MavenArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.net.URL location)
MavenArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.net.URL location)
-
Uses of Nullable in io.microsphere.collection
Methods in io.microsphere.collection with annotations of type Nullable Modifier and Type Method Description static <T> T
CollectionUtils. first(java.lang.Iterable<T> values)
Retrieves the first element from the givenIterable
.static <T> T
CollectionUtils. first(java.util.Collection<T> values)
Retrieves the first element from the given collection.static <T> T
CollectionUtils. first(java.util.Iterator<T> values)
Retrieves the first element from the givenIterator
.static <E> E
ListUtils. first(java.util.List<E> list)
Retrieves the first element from the specified list.static <E> E
ListUtils. last(java.util.List<E> list)
Retrieves the last element from the specified list.Method parameters in io.microsphere.collection with annotations of type Nullable Modifier and Type Method Description static <T> int
CollectionUtils. addAll(java.util.Collection<T> collection, T... values)
Adds all the elements in the specified array to the given collection.static boolean
CollectionUtils. equals(java.util.Collection<?> one, java.util.Collection<?> another)
Compares two collections for equality, consideringnull
and empty collections as equal.static boolean
CollectionUtils. equals(java.util.Collection<?> one, java.util.Collection<?> another)
Compares two collections for equality, consideringnull
and empty collections as equal.static <T> T
CollectionUtils. first(java.lang.Iterable<T> values)
Retrieves the first element from the givenIterable
.static <T> T
CollectionUtils. first(java.util.Collection<T> values)
Retrieves the first element from the given collection.static <T> T
CollectionUtils. first(java.util.Iterator<T> values)
Retrieves the first element from the givenIterator
.static boolean
CollectionUtils. isEmpty(java.util.Collection<?> collection)
Checks if the provided collection is null or empty.static boolean
EnumerationUtils. isEnumeration(java.lang.Class<?> type)
Checks if the given class type is assignable fromEnumeration
.static boolean
EnumerationUtils. isEnumeration(java.lang.Object values)
Checks if the given object is an instance ofEnumeration
.static boolean
ListUtils. isList(java.lang.Class<?> type)
Checks if the specified type is assignable fromList
.static boolean
ListUtils. isList(java.lang.Object values)
Checks if the specified object is an instance ofList
.static boolean
CollectionUtils. isNotEmpty(java.util.Collection<?> collection)
Checks if the provided collection is not null and not empty.static boolean
QueueUtils. isQueue(java.lang.Class<?> type)
Checks whether the specifiedtype
is an instance ofQueue
.static boolean
QueueUtils. isQueue(java.lang.Object values)
Checks whether the specifiedIterable
is an instance ofQueue
.static boolean
SetUtils. isSet(java.lang.Class<?> type)
Checks whether the specifiedtype
is assignable fromSet
interface.static boolean
SetUtils. isSet(java.lang.Object values)
Checks whether the specifiedIterable
is an instance ofSet
.static <E> java.util.Enumeration<E>
CollectionUtils. singletonEnumeration(E element)
Creates a singleton read-onlyEnumeration
that contains only the specified element.static <E> java.lang.Iterable<E>
CollectionUtils. singletonIterable(E element)
Creates a singletonIterable
that contains only the specified element.static <E> java.util.Iterator<E>
CollectionUtils. singletonIterator(E element)
Creates a singleton read-onlyIterator
that contains only the specified element.static int
CollectionUtils. size(java.lang.Iterable<?> iterable)
Returns the size of the specifiedIterable
.static int
CollectionUtils. size(java.util.Collection<?> collection)
Returns the size of the specifiedCollection
.static <E> java.lang.Iterable<E>
CollectionUtils. toIterable(java.util.Collection<E> collection)
Converts a nullableCollection
into anIterable
.static <E> java.lang.Iterable<E>
CollectionUtils. toIterable(java.util.Enumeration<E> enumeration)
Converts a nullableEnumeration
into anIterable
.static <E> java.lang.Iterable<E>
CollectionUtils. toIterable(java.util.Iterator<E> iterator)
Converts a nullableIterator
into anIterable
.static <E> java.util.Iterator<E>
CollectionUtils. toIterator(java.util.Enumeration<E> enumeration)
Converts a nullableEnumeration
into anIterator
.static <E> java.util.Iterator<E>
CollectionUtils. unmodifiableIterator(java.util.Iterator<E> iterator)
Returns an unmodifiable (read-only) view of the given iterator. -
Uses of Nullable in io.microsphere.convert
Methods in io.microsphere.convert with annotations of type Nullable Modifier and Type Method Description T
AbstractConverter. convert(S source)
T
Converter. convert(S source)
Convert the source-typed value to the target-typed valueprotected abstract T
AbstractConverter. doConvert(S source)
Converts the non-null source-typed value to the target-typed value.Method parameters in io.microsphere.convert with annotations of type Nullable Modifier and Type Method Description T
AbstractConverter. convert(S source)
T
Converter. convert(S source)
Convert the source-typed value to the target-typed value -
Uses of Nullable in io.microsphere.io
Methods in io.microsphere.io with annotations of type Nullable Modifier and Type Method Description static java.lang.String
FileUtils. getFileExtension(java.lang.String fileName)
Gets the extension of a file name, if any.static java.lang.String
FileUtils. resolveRelativePath(java.io.File parentDirectory, java.io.File targetFile)
Resolves the relative path from a parent directory to a target file. -
Uses of Nullable in io.microsphere.json
Methods in io.microsphere.json with annotations of type Nullable Modifier and Type Method Description static <V> V
JSONUtils. readValues(JSONArray jsonArray, java.lang.Class<V> multipleClass, java.lang.Class<?> elementClass)
Reads aJSONArray
and converts it into an instance of the specified collection or array type.static java.lang.Object
JSONUtils. readValues(JSONArray jsonArray, java.lang.reflect.Type targetType)
Reads aJSONArray
and converts it into an instance of the specified target type.static <V> V
JSONUtils. readValues(java.lang.String json, java.lang.Class<V> multipleClass, java.lang.Class<?> elementClass)
Reads a JSON array string and converts it into an instance of the specified collection or array type.static java.lang.String
JSONUtils. writeValueAsString(java.lang.Object object)
Converts an object into its JSON string representation. -
Uses of Nullable in io.microsphere.lang
Methods in io.microsphere.lang with annotations of type Nullable Modifier and Type Method Description java.lang.String
ClassDataRepository. findClassPath(java.lang.Class<?> type)
Find class path under specified class namejava.lang.String
ClassDataRepository. findClassPath(java.lang.String className)
Find class path under specified class namejava.lang.String
Deprecation. getLink()
java.lang.String
Deprecation. getReason()
java.lang.String
Deprecation. getReplacement()
Version
Deprecation. getSince()
Method parameters in io.microsphere.lang with annotations of type Nullable Modifier and Type Method Description Deprecation.Builder
Deprecation.Builder. level(Deprecation.Level level)
Deprecation.Builder
Deprecation.Builder. link(java.lang.String link)
Deprecation.Builder
Deprecation.Builder. reason(java.lang.String reason)
Deprecation.Builder
Deprecation.Builder. replacement(java.lang.String replacement)
Deprecation.Builder
Deprecation.Builder. since(Version since)
Deprecation.Builder
Deprecation.Builder. since(java.lang.String since)
-
Uses of Nullable in io.microsphere.lang.function
Methods in io.microsphere.lang.function with annotations of type Nullable Modifier and Type Method Description static <T> T
Streams. filterFirst(java.lang.Iterable<T> values, java.util.function.Predicate<? super T>... predicates)
Filters elements from the givenIterable
using the combined result of multiple predicates in a logical AND fashion, and returns the first matching element. -
Uses of Nullable in io.microsphere.management
Methods in io.microsphere.management with annotations of type Nullable Modifier and Type Method Description static javax.management.MBeanAttributeInfo
JmxUtils. findMBeanAttributeInfo(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, java.lang.String attributeName)
Retrieves the metadata (MBeanAttributeInfo
) for a specific attribute of an MBean registered in the MBeanServer.static java.lang.Object
JmxUtils. getAttribute(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, java.lang.String attributeName)
Retrieves the value of the specified MBean attribute from the given MBean registered in the MBeanServer.static java.lang.Object
JmxUtils. getAttribute(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, javax.management.MBeanAttributeInfo attributeInfo)
Retrieves the value of the specified MBean attribute from the given MBean registered in the MBeanServer.Method parameters in io.microsphere.management with annotations of type Nullable Modifier and Type Method Description protected static java.lang.Object
JmxUtils. doGetAttribute(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName, javax.management.MBeanAttributeInfo attributeInfo, java.lang.String attributeName)
Constructor parameters in io.microsphere.management with annotations of type Nullable Constructor Description MBeanAttribute(javax.management.MBeanInfo declaringMBeanInfo, javax.management.MBeanAttributeInfo attributeInfo, java.lang.Object value)
-
Uses of Nullable in io.microsphere.metadata
Methods in io.microsphere.metadata with annotations of type Nullable Modifier and Type Method Description java.util.List<ConfigurationProperty>
ConfigurationPropertyLoader. load()
Loads a list ofConfigurationProperty
instances.Constructor parameters in io.microsphere.metadata with annotations of type Nullable Constructor Description ClassPathResourceConfigurationPropertyLoader(java.lang.String resourceName, java.lang.ClassLoader classLoader)
ClassPathResourceConfigurationPropertyLoader(java.lang.String resourceName, java.lang.ClassLoader classLoader, boolean loadedAll)
-
Uses of Nullable in io.microsphere.net
Methods in io.microsphere.net with annotations of type Nullable Modifier and Type Method Description static java.lang.String
URLUtils. buildMatrixString(java.util.Map<java.lang.String,java.util.List<java.lang.String>> matrixParameters)
Builds a matrix string from the provided map of matrix parameters.static java.lang.String
URLUtils. getSubProtocol(java.lang.String url)
Extracts the first sub-protocol value from the specified URL string.static java.net.URLStreamHandlerFactory
URLUtils. getURLStreamHandlerFactory()
Retrieves the current system-wideURLStreamHandlerFactory
.static java.lang.String
URLUtils. normalizePath(java.lang.String path)
Normalizes a given path by removing redundant slashes or backslashes and standardizing separators.static java.lang.String
URLUtils. resolveArchiveEntryPath(java.net.URL archiveFileURL)
Resolves the archive entry path from the given URL.static java.io.File
URLUtils. resolveArchiveFile(java.net.URL resourceURL)
Resolves the archive file from the specified URL.static java.lang.String
URLUtils. resolveAuthority(java.lang.String authority)
Resolves the authority part from the specified URL string by truncating any matrix parameters.static java.lang.String
URLUtils. resolveProtocol(java.lang.String url)
Resolves the protocol from the specified URL string.static java.util.jar.JarFile
URLUtils. toJarFile(java.net.URL url)
Converts the provided URL to aJarFile
instance if it refers to a valid JAR file. -
Uses of Nullable in io.microsphere.reflect
Fields in io.microsphere.reflect with annotations of type Nullable Modifier and Type Field Description protected Deprecation
ReflectiveDefinition. deprecation
static java.lang.Class<? extends java.lang.Throwable>
ReflectionUtils. INACCESSIBLE_OBJECT_EXCEPTION_CLASS
Theclass
of java.lang.reflect.InaccessibleObjectException since JDK 9.Methods in io.microsphere.reflect with annotations of type Nullable Modifier and Type Method Description JavaType
JavaType. as(java.lang.Class<?> targetClass)
Retrieves a JavaType instance representing the specified target class if it is assignable from this type.static java.lang.Class<?>
TypeUtils. asClass(java.lang.reflect.Type type)
Converts the givenType
to aClass
if possible.static java.lang.reflect.GenericArrayType
TypeUtils. asGenericArrayType(java.lang.reflect.Type type)
Converts the givenType
to aGenericArrayType
if possible.static java.lang.reflect.ParameterizedType
TypeUtils. asParameterizedType(java.lang.reflect.Type type)
Converts the givenType
to aParameterizedType
if possible.static java.lang.reflect.TypeVariable
TypeUtils. asTypeVariable(java.lang.reflect.Type type)
Converts the givenType
to aTypeVariable
if possible.static java.lang.reflect.WildcardType
TypeUtils. asWildcardType(java.lang.reflect.Type type)
Converts the givenType
to aWildcardType
if possible.static <T> java.lang.reflect.Constructor<T>
ConstructorUtils. findConstructor(java.lang.Class<T> type, java.lang.Class<?>... parameterTypes)
Finds a constructor in the specified class that matches the given parameter types.static java.lang.reflect.Method
MethodUtils. findDeclaredMethod(java.lang.Class<?> targetClass, java.lang.String methodName, java.lang.Class<?>... parameterTypes)
Finds a declared method in the specified class, including its superclasses and interfaces.static java.lang.reflect.Field
FieldUtils. findField(java.lang.Class<?> klass, java.lang.String fieldName)
Finds aField
in the specified class by its name.static java.lang.reflect.Field
FieldUtils. findField(java.lang.Class<?> klass, java.lang.String fieldName, java.lang.Class<?> fieldType)
Find the declaredField
by its name and type.static java.lang.reflect.Field
FieldUtils. findField(java.lang.Class<?> klass, java.lang.String fieldName, java.util.function.Predicate<? super java.lang.reflect.Field>... predicates)
Find the declaredField
by its name and apply additional filtering conditions.static java.lang.reflect.Field
FieldUtils. findField(java.lang.Object object, java.lang.String fieldName)
Find the specified object's declaredField
by its name.static java.lang.reflect.Method
MethodUtils. findMethod(java.lang.Class targetClass, java.lang.String methodName)
Find theMethod
by the specified type (including inherited types) and method name without the parameter type.static java.lang.reflect.Method
MethodUtils. findMethod(java.lang.Class targetClass, java.lang.String methodName, java.lang.Class<?>... parameterTypes)
Find theMethod
by the specified type (including inherited types), method name, and parameter types.static java.lang.reflect.Method
MethodUtils. findNearestOverriddenMethod(java.lang.reflect.Method overrider)
Finds the nearest overridden method in the class hierarchy for the given overriding method.static java.lang.reflect.Method
MethodUtils. findOverriddenMethod(java.lang.reflect.Method overrider, java.lang.Class<?> targetClass)
Finds the method in the specified target class that is overridden by the given overriding method.static JavaType
JavaType. fromField(java.lang.Class<?> declaredClass, java.lang.String fieldName)
Creates a JavaType instance from the field with the specified name in the given class.static java.lang.String
TypeUtils. getClassName(java.lang.reflect.Type type)
Gets the fully qualified name of the class represented by the givenType
.static java.lang.reflect.Type
TypeUtils. getComponentType(java.lang.reflect.Type type)
Gets the component type of the specified type, if it represents an array type.java.lang.reflect.Constructor<?>
ConstructorDefinition. getConstructor()
Get theConstructor
static <T> java.lang.reflect.Constructor<T>
ConstructorUtils. getConstructor(java.lang.Class<T> type, java.lang.Class<?>... parameterTypes)
Retrieves the public constructor of the specified class that matches the given parameter types.java.lang.Class<?>
MemberDefinition. getDeclaredClass()
Get the declared classstatic <T> java.lang.reflect.Constructor<T>
ConstructorUtils. getDeclaredConstructor(java.lang.Class<T> type, java.lang.Class<?>... parameterTypes)
Retrieves the declared constructor (including private, protected, and package-private) of the specified class that matches the given parameter types.static java.lang.reflect.Field
FieldUtils. getDeclaredField(java.lang.Class<?> declaredClass, java.lang.String fieldName)
Retrieves the declared field with the specified name from the given class.Deprecation
ReflectiveDefinition. getDeprecation()
Get the deprecationstatic <V> V
FieldUtils. getFieldValue(java.lang.Object instance, java.lang.reflect.Field field)
Retrieves the value of the specifiedField
from the given object instance.static <V> V
FieldUtils. getFieldValue(java.lang.Object instance, java.lang.String fieldName)
Retrieves the value of a field with the specified name from the given object instance.static <V> V
FieldUtils. getFieldValue(java.lang.Object instance, java.lang.String fieldName, java.lang.Class<V> fieldType)
Retrieves the value of a field with the specified name and type from the given object instance.static <V> V
FieldUtils. getFieldValue(java.lang.Object instance, java.lang.String fieldName, V defaultValue)
Retrieves the value of a field with the specified name from the given object instance, returning the provided default value if the field is not found or its value isnull
.M
MemberDefinition. getMember()
Get the member instancejava.lang.reflect.Method
MethodDefinition. getMethod()
The resolved methodstatic java.lang.Class<?>
TypeUtils. getRawClass(java.lang.reflect.Type type)
Gets the raw class of the specifiedType
, if it is aParameterizedType
or aClass
.java.lang.reflect.Type
JavaType. getRawType()
Retrieves the raw type represented by this JavaType.static java.lang.reflect.Type
TypeUtils. getRawType(java.lang.reflect.Type type)
Gets the raw type of the specifiedType
, if it is aParameterizedType
.java.lang.Class<?>
ReflectiveDefinition. getResolvedClass()
Get the resolved classjava.lang.reflect.Field
FieldDefinition. getResolvedField()
JavaType
JavaType. getRootSource()
Retrieves the root source JavaType from which this type was ultimately derived, if available.JavaType
JavaType. getSource()
Retrieves the source JavaType from which this type was derived, if available.static <T> T
FieldUtils. getStaticFieldValue(java.lang.Class<?> klass, java.lang.String fieldName)
Retrieves the value of a static field from the specified class.static <T> T
FieldUtils. getStaticFieldValue(java.lang.reflect.Field field)
Retrieves the value of a static field.JavaType
JavaType. getSuperType()
Retrieves the supertype of this JavaType.static java.lang.String
TypeUtils. getTypeName(java.lang.reflect.Type type)
Gets the fully qualified type name of the givenType
.static <R> R
MethodUtils. invokeMethod(java.lang.Object instance, java.lang.Class<?> type, java.lang.String methodName, java.lang.Object... arguments)
Invokes a method with the specified name on the given class type, using the provided arguments.static <R> R
MethodUtils. invokeMethod(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object... arguments)
Invokes the underlying method represented by thisMethod
object, on the specified object with the specified parameters.static <R> R
MethodUtils. invokeMethod(java.lang.Object object, java.lang.String methodName, java.lang.Object... arguments)
Invokes a method with the specified name on the given object, using the provided arguments.static <R> R
MethodUtils. invokeStaticMethod(java.lang.Class<?> targetClass, java.lang.String methodName, java.lang.Object... arguments)
Invokes a static method of the specified target class with the given method name and arguments.static <R> R
MethodUtils. invokeStaticMethod(java.lang.reflect.Method method, java.lang.Object... arguments)
Invokes the specified static method represented by the givenMethod
object.static java.lang.Class
TypeUtils. resolveActualTypeArgumentClass(java.lang.reflect.Type type, java.lang.Class baseType, int index)
Resolves and returns the actual type argument class at the specified index from the given type for a base type.static <V> V
FieldUtils. setFieldValue(java.lang.Object instance, java.lang.reflect.Field field, V value)
Sets the value of the specifiedField
in the given object instance.static <V> V
FieldUtils. setFieldValue(java.lang.Object instance, java.lang.String fieldName, V value)
Sets the value of a field with the specified name in the given object instance.static <V> V
FieldUtils. setStaticFieldValue(java.lang.Class<?> klass, java.lang.String fieldName, V fieldValue)
Sets the value of a static field in the specified class.<T> java.lang.Class<T>
JavaType. toClass()
Converts this JavaType to aClass
if possible.java.lang.reflect.GenericArrayType
JavaType. toGenericArrayType()
Converts this JavaType to aGenericArrayType
if possible.java.lang.reflect.ParameterizedType
JavaType. toParameterizedType()
Converts this JavaType to aParameterizedType
if possible.java.lang.reflect.TypeVariable
JavaType. toTypeVariable()
Converts this JavaType to aTypeVariable
if possible.java.lang.reflect.WildcardType
JavaType. toWildcardType()
Converts this JavaType to aWildcardType
if possible.Method parameters in io.microsphere.reflect with annotations of type Nullable Modifier and Type Method Description static java.lang.String
TypeUtils. getTypeName(java.lang.reflect.Type type)
Gets the fully qualified type name of the givenType
.static java.lang.String[]
TypeUtils. getTypeNames(java.lang.reflect.Type... types)
Gets the fully qualified type names for all types in the provided array.static <R> R
MethodUtils. invokeMethod(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object... arguments)
Invokes the underlying method represented by thisMethod
object, on the specified object with the specified parameters.Constructor parameters in io.microsphere.reflect with annotations of type Nullable Constructor Description ClassDefinition(Version since, Deprecation deprecation, java.lang.String className)
ClassDefinition(java.lang.String since, Deprecation deprecation, java.lang.String className)
FieldDefinition(Version since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String fieldName)
FieldDefinition(java.lang.String since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String fieldName)
MemberDefinition(Version since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String name)
MemberDefinition(java.lang.String since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String name)
ReflectiveDefinition(Version since, Deprecation deprecation, java.lang.String className)
ReflectiveDefinition(java.lang.String since, Deprecation deprecation, java.lang.String className)
-
Uses of Nullable in io.microsphere.util
Fields in io.microsphere.util with annotations of type Nullable Modifier and Type Field Description static java.lang.Class<?>
StackTraceUtils. STACK_WALKER_CLASS
TheClass
of java.lang.StackWalker that was introduced in JDK 9.static java.lang.Class<?>
StackTraceUtils. STACK_WALKER_OPTION_CLASS
TheClass
of java.lang.StackWalker.Option that was introduced in JDK 9.static java.lang.Class<?>
StackTraceUtils. STACK_WALKER_STACK_FRAME_CLASS
TheClass
of java.lang.StackWalker.StackFrame that was introduced in JDK 9.Methods in io.microsphere.util with annotations of type Nullable Modifier and Type Method Description static <T> T
ClassUtils. cast(java.lang.Object object, java.lang.Class<T> castType)
Casts the given object to the specified type if possible.static <A extends java.lang.annotation.Annotation>
AAnnotationUtils. findAnnotation(java.lang.reflect.AnnotatedElement annotatedElement, java.lang.Class<A> annotationType)
Finds the annotation of the specified type that is directly or indirectly present on the givenAnnotatedElement
.static <A extends java.lang.annotation.Annotation>
AAnnotationUtils. findAnnotation(java.lang.reflect.AnnotatedElement annotatedElement, java.util.function.Predicate<? super java.lang.annotation.Annotation>... annotationFilters)
Finds the first annotation of the specifiedAnnotatedElement
that matches all the given filters.static <T> T
AnnotationUtils. findAttributeValue(java.lang.annotation.Annotation[] annotations, java.lang.String attributeName)
Finds the value of the specified attribute from the given array of annotations.static java.lang.Class<?>
ClassLoaderUtils. findLoadedClass(java.lang.ClassLoader classLoader, java.lang.String className)
Finds a class that has already been loaded by the givenClassLoader
or its parent hierarchy.static java.net.URLClassLoader
ClassLoaderUtils. findURLClassLoader(java.lang.ClassLoader classLoader)
Attempts to find and return the firstURLClassLoader
in the hierarchy starting from the provided ClassLoader.R
Compatible. get()
static <T> T
AnnotationUtils. getAttributeValue(java.lang.annotation.Annotation annotation, java.lang.String attributeName)
Retrieves the value of the specified attribute from the given annotation.static java.lang.ClassLoader
ClassLoaderUtils. getCallerClassLoader()
Retrieves theClassLoader
of the caller class from the call stack.static java.lang.Class<?>
ClassUtils. getClass(java.lang.Object object)
Gets theClass
of the given object.static java.lang.ClassLoader
ClassLoaderUtils. getClassLoader(java.lang.Class<?> loadedClass)
Get the ClassLoader from the loaded class if present.static java.net.URL
ClassLoaderUtils. getClassResource(java.lang.Class<?> type)
Returns the resource URL for the class file corresponding to the specified class.static java.net.URL
ClassLoaderUtils. getClassResource(java.lang.ClassLoader classLoader, java.lang.Class<?> type)
Get theClass
resource URL under specifiedClass
static java.lang.ClassLoader
ClassLoaderUtils. getDefaultClassLoader()
Retrieves the default ClassLoader to use when none is explicitly provided.static java.net.URL
ClassLoaderUtils. getResource(java.lang.ClassLoader classLoader, ClassLoaderUtils.ResourceType resourceType, java.lang.String resourceName)
Retrieves a resource URL for the specified resource name using the provided ClassLoader and resource type.static java.net.URL
ClassLoaderUtils. getResource(java.lang.ClassLoader classLoader, java.lang.String resourceName)
Retrieves a resource URL for the specified resource name using the provided ClassLoader.static java.net.URL
ClassLoaderUtils. getResource(java.lang.String resourceName)
Get the resource URL under specified resource name using the default ClassLoader.static java.lang.String
ClassLoaderUtils. getResourceAsString(java.lang.ClassLoader classLoader, java.lang.String resourceName)
Gets the content of the specified resource as a String using the provided ClassLoader.static java.lang.String
ClassLoaderUtils. getResourceAsString(java.lang.String resourceName)
Gets the content of the specified resource as a String using the default ClassLoader.static java.net.URL
ClassPathUtils. getRuntimeClassLocation(java.lang.Class<?> type)
Get Class Location URL from specifiedClass
at runtime.static java.net.URL
ClassPathUtils. getRuntimeClassLocation(java.lang.String className)
Get Class Location URL from specified class name at runtime.static java.lang.String
ClassUtils. getSimpleName(java.lang.Class<?> type)
Gets the simple name of the given class.static java.lang.String
SystemUtils. getSystemProperty(java.lang.String key)
Gets a system property with the given key, defaulting tonull
if the property cannot be read.static java.lang.String
SystemUtils. getSystemProperty(java.lang.String key, java.lang.String defaultValue)
Gets a system property with the given key, defaulting to the provideddefaultValue
if the property cannot be read.static java.lang.Class<?>
ClassUtils. getTopComponentType(java.lang.Class<?> arrayType)
Gets the top-level component type of the given array type.static java.lang.Class<?>
ClassUtils. getTopComponentType(java.lang.Object array)
Gets the top-level component type of the given array object.static java.lang.Class<?>
ClassUtils. getType(java.lang.Object value)
Alias ofClassUtils.getClass(Object)
static java.lang.String
ClassUtils. getTypeName(java.lang.Class<?> type)
Gets the type name of the given class.static java.lang.String
ClassUtils. getTypeName(java.lang.Object value)
Gets the type name of the given object.static java.lang.Class<?>
ClassLoaderUtils. loadClass(java.lang.ClassLoader classLoader, java.lang.String className)
Loads the class with the specified name using the provided ClassLoader or the default ClassLoader if none is specified.static java.lang.Class<?>
ClassLoaderUtils. loadClass(java.lang.ClassLoader classLoader, java.lang.String className, boolean cached)
Loads the class with the specified name using the provided ClassLoader or the default ClassLoader if none is specified, optionally caching the result for faster subsequent lookups.static java.lang.Class<?>
ClassLoaderUtils. resolveClass(java.lang.String className)
Resolves a class by its name using the default ClassLoader.static java.lang.Class<?>
ClassLoaderUtils. resolveClass(java.lang.String className, java.lang.ClassLoader classLoader)
Resolves a class by its name using the provided ClassLoader or the default ClassLoader if none is specified.static java.lang.Class<?>
ClassLoaderUtils. resolveClass(java.lang.String className, java.lang.ClassLoader classLoader, boolean cached)
Resolves a class by its name using the provided ClassLoader or the default ClassLoader if none is specified, optionally caching the result for faster subsequent lookups.static java.lang.String
ClassUtils. resolveClassName(java.lang.String resourceName)
Resolves the fully qualified class name from a resource name.static java.lang.String
ClassUtils. resolvePackageName(java.lang.Class<?> targetClass)
Resolve the package name of the given class.static java.lang.Class<?>
ClassUtils. resolvePrimitiveClassForName(java.lang.String name)
Resolve the given class name as a primitive class, if appropriate, according to the JVM's naming rules for primitive classes.static java.lang.Class<?>
ClassUtils. resolvePrimitiveType(java.lang.Class<?> type)
Resolves the primitive type corresponding to the given type.static java.lang.Class<?>
ClassUtils. resolveWrapperType(java.lang.Class<?> primitiveType)
Resolve the wrapper class from the primitive type.Method parameters in io.microsphere.util with annotations of type Nullable Modifier and Type Method Description static boolean
ShutdownHookUtils. addShutdownHookCallback(java.lang.Runnable callback)
Adds a shutdown hook callback to be executed during JVM shutdown.static boolean
ClassUtils. arrayTypeEquals(java.lang.Class<?> oneArrayType, java.lang.Class<?> anotherArrayType)
Checks if two array types are equivalent, including nested arrays.static boolean
ClassUtils. arrayTypeEquals(java.lang.Class<?> oneArrayType, java.lang.Class<?> anotherArrayType)
Checks if two array types are equivalent, including nested arrays.static void
Assert. assertNoNullElements(java.lang.Iterable<?> elements, java.lang.String message)
Assert that a elements contains nonull
elements.static void
Assert. assertNoNullElements(java.lang.Iterable<?> elements, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that a elements contains nonull
elements.static void
Assert. assertNoNullElements(java.lang.Object[] array, java.lang.String message)
Assert that an array contains nonull
elements.static void
Assert. assertNoNullElements(java.lang.Object[] array, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that an array contains nonull
elements.static void
Assert. assertNotBlank(java.lang.String text, java.lang.String message)
Assert that a string is not blank.static void
Assert. assertNotBlank(java.lang.String text, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that a string is not blank.static void
Assert. assertNotEmpty(java.lang.Object[] array, java.lang.String message)
Assert that an array contains elements; that is, it must not benull
and must contain at least one element.static void
Assert. assertNotEmpty(java.lang.Object[] array, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that an array contains elements; that is, it must not benull
and must contain at least one element.static void
Assert. assertNotEmpty(java.lang.String text, java.lang.String message)
Assert that a string is not empty ("").static void
Assert. assertNotEmpty(java.lang.String text, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that a string is not empty ("").static void
Assert. assertNotEmpty(java.util.Collection<?> collection, java.lang.String message)
Assert that a collection contains elements; that is, it must not benull
and must contain at least one element.static void
Assert. assertNotEmpty(java.util.Collection<?> collection, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that a collection contains elements; that is, it must not benull
and must contain at least one element.static void
Assert. assertNotEmpty(java.util.Map<?,?> map, java.lang.String message)
Assert that a Map contains entries; that is, it must not benull
and must contain at least one entry.static void
Assert. assertNotEmpty(java.util.Map<?,?> map, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that a Map contains entries; that is, it must not benull
and must contain at least one entry.static void
Assert. assertNotNull(java.lang.Object object, java.lang.String message)
Assert that an object is notnull
.static void
Assert. assertNotNull(java.lang.Object object, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that an object is notnull
.static void
Assert. assertNull(java.lang.Object object, java.lang.String message)
Assert that an object isnull
.static void
Assert. assertNull(java.lang.Object object, java.util.function.Supplier<java.lang.String> messageSupplier)
Assert that an object isnull
.static <T> T
ClassUtils. cast(java.lang.Object object, java.lang.Class<T> castType)
Casts the given object to the specified type if possible.static <T> T
ClassUtils. cast(java.lang.Object object, java.lang.Class<T> castType)
Casts the given object to the specified type if possible.static boolean
CharSequenceUtils. containsWhitespace(java.lang.CharSequence str)
Checks whether the givenCharSequence
contains any whitespace characters.static boolean
StringUtils. containsWhitespace(java.lang.String str)
Checks whether the givenString
contains any whitespace characters.static java.util.List<java.lang.Class<?>>
ClassUtils. findAllClasses(java.lang.Class<?> type, java.util.function.Predicate<? super java.lang.Class<?>>... classFilters)
Find all classes from the specified type, optionally filtering the results.static java.util.List<java.lang.Class<?>>
ClassUtils. findAllClasses(java.lang.Class<?> type, java.util.function.Predicate<? super java.lang.Class<?>>... classFilters)
Find all classes from the specified type, optionally filtering the results.static java.util.Set<java.net.URL>
ClassLoaderUtils. findAllClassPathURLs(java.lang.ClassLoader classLoader)
Retrieves all URLs from the class path associated with the specified ClassLoader and its parent hierarchy.static java.util.List<java.lang.Class<?>>
ClassUtils. findAllInheritedClasses(java.lang.Class<?> type, java.util.function.Predicate<? super java.lang.Class<?>>... classFilters)
Find all inherited classes from the specified type, optionally filtering the results.static java.util.List<java.lang.Class<?>>
ClassUtils. findAllInheritedClasses(java.lang.Class<?> type, java.util.function.Predicate<? super java.lang.Class<?>>... classFilters)
Find all inherited classes from the specified type, optionally filtering the results.static java.util.List<java.lang.Class<?>>
ClassUtils. findAllInterfaces(java.lang.Class<?> type, java.util.function.Predicate<? super java.lang.Class<?>>... interfaceFilters)
Find all interfaces from the specified type, optionally filtering the results.static java.util.List<java.lang.Class<?>>
ClassUtils. findAllInterfaces(java.lang.Class<?> type, java.util.function.Predicate<? super java.lang.Class<?>>... interfaceFilters)
Find all interfaces from the specified type, optionally filtering the results.static java.util.List<java.lang.Class<?>>
ClassUtils. findAllSuperClasses(java.lang.Class<?> type, java.util.function.Predicate<? super java.lang.Class<?>>... classFilters)
Find all super classes from the specified type, optionally filtering the results.static java.util.List<java.lang.Class<?>>
ClassUtils. findAllSuperClasses(java.lang.Class<?> type, java.util.function.Predicate<? super java.lang.Class<?>>... classFilters)
Find all super classes from the specified type, optionally filtering the results.static java.util.Set<java.lang.String>
ClassUtils. findClassNamesInClassPath(java.io.File classPath, boolean recursive)
Finds all class names in the specified class path.static java.util.Set<java.lang.String>
ClassUtils. findClassNamesInClassPath(java.lang.String classPath, boolean recursive)
Finds all class names in the specified class path.static java.util.Set<java.lang.String>
ClassUtils. findClassNamesInDirectory(java.io.File classesDirectory, boolean recursive)
Finds all class names in the specified directory.static java.util.Set<java.lang.String>
ClassUtils. findClassNamesInJarFile(java.io.File jarFile, boolean recursive)
Finds all class names in the specified JAR file.static java.lang.Class<?>
ClassLoaderUtils. findLoadedClass(java.lang.ClassLoader classLoader, java.lang.String className)
Finds a class that has already been loaded by the givenClassLoader
or its parent hierarchy.static java.util.Set<java.lang.Class<?>>
ClassLoaderUtils. findLoadedClasses(java.lang.ClassLoader classLoader, java.lang.Iterable<java.lang.String> classNames)
Finds and returns a set of loaded classes for the given class names using the specified ClassLoader.static java.util.Set<java.lang.Class<?>>
ClassLoaderUtils. findLoadedClasses(java.lang.ClassLoader classLoader, java.lang.String... classNames)
Finds and returns a set of loaded classes for the given class names using the specified ClassLoader.static java.util.Set<java.lang.Class<?>>
ClassLoaderUtils. findLoadedClassesInClassPath(java.lang.ClassLoader classLoader)
Retrieves a set of classes that have been loaded from the class path using the specified ClassLoader or the default one.static java.util.Set<java.lang.Class<?>>
ClassLoaderUtils. findLoadedClassesInClassPath(java.lang.ClassLoader classLoader, java.lang.String classPath)
Retrieves a set of classes that have been loaded from the specified class path using the provided ClassLoader.static java.util.Set<java.lang.Class<?>>
ClassLoaderUtils. findLoadedClassesInClassPaths(java.lang.ClassLoader classLoader, java.util.Set<java.lang.String> classPaths)
Finds and returns a set of classes that have been loaded from the specified class paths using the provided ClassLoader.protected static java.util.List<java.lang.Class<?>>
ClassUtils. findTypes(java.lang.Class<?> type, boolean includeSelf, boolean includeHierarchicalTypes, boolean includeGenericSuperclass, boolean includeGenericInterfaces, java.util.function.Predicate<? super java.lang.Class<?>>... typeFilters)
Finds types based on the specified criteria.protected static java.util.List<java.lang.Class<?>>
ClassUtils. findTypes(java.lang.Class<?> type, boolean includeSelf, boolean includeHierarchicalTypes, boolean includeGenericSuperclass, boolean includeGenericInterfaces, java.util.function.Predicate<? super java.lang.Class<?>>... typeFilters)
Finds types based on the specified criteria.static java.net.URLClassLoader
ClassLoaderUtils. findURLClassLoader(java.lang.ClassLoader classLoader)
Attempts to find and return the firstURLClassLoader
in the hierarchy starting from the provided ClassLoader.static java.util.List<java.lang.Class<?>>
ClassUtils. getAllClasses(java.lang.Class<?> type)
Get all classes from the specified type, including the type itself, its superclasses, and interfaces.static java.util.List<java.lang.Class<?>>
ClassUtils. getAllInheritedClasses(java.lang.Class<?> type)
Get all inherited classes from the specified type.static java.util.List<java.lang.Class<?>>
ClassUtils. getAllInheritedTypes(java.lang.Class<?> type)
Get all inherited types from the specified type.static java.util.List<java.lang.Class<?>>
ClassUtils. getAllInterfaces(java.lang.Class<?> type)
Get all interfaces from the specified type.static java.util.Set<java.lang.Class<?>>
ClassLoaderUtils. getAllLoadedClasses(java.lang.ClassLoader classLoader)
Retrieves a set of all classes that have been loaded by the specified ClassLoader and its parent hierarchy.static java.util.Map<java.lang.ClassLoader,java.util.Set<java.lang.Class<?>>>
ClassLoaderUtils. getAllLoadedClassesMap(java.lang.ClassLoader classLoader)
Retrieves a map of ClassLoader instances to their corresponding sets of loaded classes.static java.util.List<java.lang.Class<?>>
ClassUtils. getAllSuperClasses(java.lang.Class<?> type)
Get all super classes from the specified type.static java.lang.Class<?>
ClassUtils. getClass(java.lang.Object object)
Gets theClass
of the given object.static java.lang.Class<?>[]
ClassUtils. getClasses(java.lang.Object... values)
Get thetypes
of the specified valuesstatic java.lang.ClassLoader
ClassLoaderUtils. getClassLoader(java.lang.Class<?> loadedClass)
Get the ClassLoader from the loaded class if present.static java.net.URL
ClassLoaderUtils. getClassResource(java.lang.ClassLoader classLoader, java.lang.Class<?> type)
Get theClass
resource URL under specifiedClass
static java.net.URL
ClassLoaderUtils. getClassResource(java.lang.ClassLoader classLoader, java.lang.String className)
Retrieves the resource URL for the class file corresponding to the specified class name.static java.util.Set<java.lang.ClassLoader>
ClassLoaderUtils. getInheritableClassLoaders(java.lang.ClassLoader classLoader)
Retrieves a set of inheritable ClassLoader instances starting from the specified ClassLoader, including its parent hierarchy.static java.util.Set<java.lang.Class<?>>
ClassLoaderUtils. getLoadedClasses(java.lang.ClassLoader classLoader)
Retrieves the set of classes that have been loaded by the specified ClassLoader.static java.net.URL
ClassLoaderUtils. getResource(java.lang.ClassLoader classLoader, ClassLoaderUtils.ResourceType resourceType, java.lang.String resourceName)
Retrieves a resource URL for the specified resource name using the provided ClassLoader and resource type.static java.net.URL
ClassLoaderUtils. getResource(java.lang.ClassLoader classLoader, java.lang.String resourceName)
Retrieves a resource URL for the specified resource name using the provided ClassLoader.static java.lang.String
ClassLoaderUtils. getResourceAsString(java.lang.ClassLoader classLoader, java.lang.String resourceName)
Gets the content of the specified resource as a String using the provided ClassLoader.static java.util.Set<java.net.URL>
ClassLoaderUtils. getResources(java.lang.ClassLoader classLoader, ClassLoaderUtils.ResourceType resourceType, java.lang.String resourceName)
Retrieves a set of URLs representing resources with the specified type and name using the provided ClassLoader.static java.util.Set<java.net.URL>
ClassLoaderUtils. getResources(java.lang.ClassLoader classLoader, java.lang.String resourceName)
Retrieves a set of URLs representing resources with the specified name using the provided ClassLoader.static java.lang.String
ClassUtils. getSimpleName(java.lang.Class<?> type)
Gets the simple name of the given class.static java.lang.Class<?>
ClassUtils. getTopComponentType(java.lang.Class<?> arrayType)
Gets the top-level component type of the given array type.static java.lang.Class<?>
ClassUtils. getTopComponentType(java.lang.Object array)
Gets the top-level component type of the given array object.static java.lang.Class<?>
ClassUtils. getType(java.lang.Object value)
Alias ofClassUtils.getClass(Object)
static java.lang.String
ClassUtils. getTypeName(java.lang.Class<?> type)
Gets the type name of the given class.static java.lang.String
ClassUtils. getTypeName(java.lang.Object value)
Gets the type name of the given object.static java.lang.Class[]
ClassUtils. getTypes(java.lang.Object... values)
Alias ofClassUtils.getTypes(Object...)
static boolean
ClassUtils. isAbstractClass(java.lang.Class<?> type)
Checks if the specified type is an abstract class.static boolean
ClassUtils. isArray(java.lang.Class<?> type)
Checks if the specified type is an array.static boolean
ClassUtils. isAssignableFrom(java.lang.Class<?> superType, java.lang.Class<?> targetType)
Checks if thesuperType
is assignable from thetargetType
.static boolean
ClassUtils. isAssignableFrom(java.lang.Class<?> superType, java.lang.Class<?> targetType)
Checks if thesuperType
is assignable from thetargetType
.static boolean
ClassUtils. isCharSequence(java.lang.Class<?> type)
Checks if the given type is a subtype ofCharSequence
.static boolean
ClassUtils. isCharSequence(java.lang.Object value)
Checks if the given object is an instance ofCharSequence
.static boolean
ClassUtils. isClass(java.lang.Object object)
Checks if the given object is an instance ofClass
.static boolean
ClassUtils. isConcreteClass(java.lang.Class<?> type)
Checks if the specified type is a concrete class.static boolean
ClassUtils. isDerived(java.lang.Class<?> targetType, java.lang.Class<?>... superTypes)
Checks if thetargetType
is derived from any of the specifiedsuperTypes
.static boolean
ClassUtils. isDerived(java.lang.Class<?> targetType, java.lang.Class<?>... superTypes)
Checks if thetargetType
is derived from any of the specifiedsuperTypes
.static boolean
CharSequenceUtils. isEmpty(java.lang.CharSequence value)
Checks if the providedCharSequence
is empty.static boolean
ClassUtils. isEnum(java.lang.Class<?> type)
Checks if the specified class is an enum.static boolean
ClassUtils. isEnum(java.lang.Object object)
Checks if the given object is an instance ofEnum
.static boolean
ClassUtils. isFinal(java.lang.Class<?> type)
Checks if the specified class is a final class.static boolean
ClassUtils. isGeneralClass(java.lang.Class<?> type)
Checks if the specified type is a general class.protected static boolean
ClassUtils. isGeneralClass(java.lang.Class<?> type, java.lang.Boolean isAbstract)
Is the specified type a general class or not?protected static boolean
ClassUtils. isGeneralClass(java.lang.Class<?> type, java.lang.Boolean isAbstract)
Is the specified type a general class or not?static boolean
IterableUtils. isIterable(java.lang.Class<?> clazz)
Checks if the given class is assignable fromIterable
.static boolean
IterableUtils. isIterable(java.lang.Object object)
Checks if the given object is an instance ofIterable
.static boolean
ClassLoaderUtils. isLoadedClass(java.lang.ClassLoader classLoader, java.lang.Class<?> type)
Checks if the specified class is already loaded by the given ClassLoader or its parent hierarchy.static boolean
ClassLoaderUtils. isLoadedClass(java.lang.ClassLoader classLoader, java.lang.String className)
Checks if the specified class name is already loaded by the given ClassLoader or its parent hierarchy.static boolean
CharSequenceUtils. isNotEmpty(java.lang.CharSequence value)
Checks if the providedCharSequence
is not empty.static boolean
ClassUtils. isNumber(java.lang.Class<?> type)
Checks if the given type is a subtype ofNumber
.static boolean
ClassUtils. isNumber(java.lang.Object value)
Checks if the given object is an instance ofNumber
.static boolean
ClassLoaderUtils. isPresent(java.lang.String className)
Checks if a class with the specified name is present in the default ClassLoader.static boolean
ClassLoaderUtils. isPresent(java.lang.String className, java.lang.ClassLoader classLoader)
Checks if a class with the specified name is present in the given ClassLoader or the default ClassLoader.static boolean
ClassLoaderUtils. isPresent(java.lang.String className, java.lang.ClassLoader classLoader)
Checks if a class with the specified name is present in the given ClassLoader or the default ClassLoader.static boolean
ClassUtils. isPrimitive(java.lang.Class<?> type)
Checks if the specified class is a primitive type.static boolean
ClassUtils. isSimpleType(java.lang.Class<?> type)
Checks if the specified type is a simple type.static boolean
ClassUtils. isSimpleType(java.lang.Object object)
Checks if the specified object is a simple type.static boolean
ClassUtils. isTopLevelClass(java.lang.Class<?> type)
Checks if the specified class is a top-level class.static boolean
ClassUtils. isWrapperType(java.lang.Class<?> type)
Checks if the specified class is a wrapper type.static boolean
ClassUtils. isWrapperType(java.lang.Object value)
Checks if the specified object is a wrapper type.static int
CharSequenceUtils. length(java.lang.CharSequence value)
Returns the length of the providedCharSequence
.static java.lang.Class<?>
ClassLoaderUtils. loadClass(java.lang.ClassLoader classLoader, java.lang.String className)
Loads the class with the specified name using the provided ClassLoader or the default ClassLoader if none is specified.static java.lang.Class<?>
ClassLoaderUtils. loadClass(java.lang.ClassLoader classLoader, java.lang.String className)
Loads the class with the specified name using the provided ClassLoader or the default ClassLoader if none is specified.static java.lang.Class<?>
ClassLoaderUtils. loadClass(java.lang.ClassLoader classLoader, java.lang.String className, boolean cached)
Loads the class with the specified name using the provided ClassLoader or the default ClassLoader if none is specified, optionally caching the result for faster subsequent lookups.static java.lang.Class<?>
ClassLoaderUtils. loadClass(java.lang.ClassLoader classLoader, java.lang.String className, boolean cached)
Loads the class with the specified name using the provided ClassLoader or the default ClassLoader if none is specified, optionally caching the result for faster subsequent lookups.static <S> S
ServiceLoaderUtils. loadFirstService(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader)
Loads the first instance of the specifiedServiceLoader
service type using the providedClassLoader
.static <S> S
ServiceLoaderUtils. loadFirstService(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader, boolean cached)
Loads the first instance of the specifiedServiceLoader
service type using the providedClassLoader
, with an option to enable or disable caching of the loaded services.static <S> S
ServiceLoaderUtils. loadLastService(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader)
Loads the last instance of the specifiedServiceLoader
service type using the providedClassLoader
.static <S> S
ServiceLoaderUtils. loadLastService(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader, boolean cached)
Loads the last instance of the specifiedServiceLoader
service type using the providedClassLoader
, with an option to enable or disable caching of the loaded services.static <S> S[]
ServiceLoaderUtils. loadServices(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader)
Loads all implementation instances of the specifiedServiceLoader
service type using the providedClassLoader
.static <S> S[]
ServiceLoaderUtils. loadServices(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader, boolean cached)
Loads all implementation instances of the specifiedServiceLoader
service type using the providedClassLoader
, with an option to enable or disable caching of the loaded services.static <S> java.util.List<S>
ServiceLoaderUtils. loadServicesList(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader)
Loads all implementation instances of the specifiedServiceLoader
service type using the providedClassLoader
.static <S> java.util.List<S>
ServiceLoaderUtils. loadServicesList(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader, boolean cached)
Loads all implementation instances of the specifiedServiceLoader
service type using the providedClassLoader
, with an option to enable or disable caching of the loaded services.static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.lang.Iterable<java.net.URL> urls, java.lang.ClassLoader classLoader)
Creates a new instance ofURLClassLoader
using the URLs provided in anIterable
.static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent)
Creates a new instance ofURLClassLoader
using the provided array of URLs and an optional parent ClassLoader.static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent, boolean initializedLoaders)
Create a new instance ofURLClassLoader
static boolean
ClassLoaderUtils. removeClassPathURL(java.lang.ClassLoader classLoader, java.net.URL url)
Removes the specified URL from the class path of the given ClassLoader if it supports such operation.static boolean
ShutdownHookUtils. removeShutdownHookCallback(java.lang.Runnable callback)
Removes a previously registered shutdown hook callback from the queue.static java.lang.Class<?>
ClassLoaderUtils. resolveClass(java.lang.String className)
Resolves a class by its name using the default ClassLoader.static java.lang.Class<?>
ClassLoaderUtils. resolveClass(java.lang.String className, java.lang.ClassLoader classLoader)
Resolves a class by its name using the provided ClassLoader or the default ClassLoader if none is specified.static java.lang.Class<?>
ClassLoaderUtils. resolveClass(java.lang.String className, java.lang.ClassLoader classLoader)
Resolves a class by its name using the provided ClassLoader or the default ClassLoader if none is specified.static java.lang.Class<?>
ClassLoaderUtils. resolveClass(java.lang.String className, java.lang.ClassLoader classLoader, boolean cached)
Resolves a class by its name using the provided ClassLoader or the default ClassLoader if none is specified, optionally caching the result for faster subsequent lookups.static java.lang.Class<?>
ClassLoaderUtils. resolveClass(java.lang.String className, java.lang.ClassLoader classLoader, boolean cached)
Resolves a class by its name using the provided ClassLoader or the default ClassLoader if none is specified, optionally caching the result for faster subsequent lookups.static java.lang.String
ClassUtils. resolveClassName(java.lang.String resourceName)
Resolves the fully qualified class name from a resource name.static java.lang.String
ClassUtils. resolvePackageName(java.lang.Class<?> targetClass)
Resolve the package name of the given class.static java.lang.String
ClassUtils. resolvePackageName(java.lang.String className)
Resolve the package name from the given class name.static java.lang.Class<?>
ClassUtils. resolvePrimitiveClassForName(java.lang.String name)
Resolve the given class name as a primitive class, if appropriate, according to the JVM's naming rules for primitive classes.static java.lang.Class<?>
ClassUtils. resolvePrimitiveType(java.lang.Class<?> type)
Resolves the primitive type corresponding to the given type.static java.net.URLClassLoader
ClassLoaderUtils. resolveURLClassLoader(java.lang.ClassLoader classLoader)
Resolves or creates aURLClassLoader
instance from the specified ClassLoader.static java.lang.Class<?>
ClassUtils. resolveWrapperType(java.lang.Class<?> primitiveType)
Resolve the wrapper class from the primitive type.static java.lang.Class<?>
ClassUtils. tryResolveWrapperType(java.lang.Class<?> primitiveType)
Attempts to resolve the wrapper type for the given primitive type.protected static java.lang.Class<?>
ClassUtils. tryResolveWrapperType(java.lang.Class<?> type, java.lang.Class<?> defaultType)
Attempts to resolve the wrapper type for the given primitive type.protected static java.lang.Class<?>
ClassUtils. tryResolveWrapperType(java.lang.Class<?> type, java.lang.Class<?> defaultType)
Attempts to resolve the wrapper type for the given primitive type. -
Uses of Nullable in io.microsphere.util.jar
Methods in io.microsphere.util.jar with annotations of type Nullable Modifier and Type Method Description static java.util.jar.JarEntry
JarUtils. findJarEntry(java.net.URL jarURL)
Finds and returns theJarEntry
from the specified JAR URL.static java.lang.String
JarUtils. resolveJarAbsolutePath(java.net.URL jarURL)
Resolves the absolute path of the JAR file from the provided URL.static java.lang.String
JarUtils. resolveRelativePath(java.net.URL jarURL)
Resolves the relative path from the given JAR URL.static java.util.jar.JarFile
JarUtils. toJarFile(java.net.URL jarURL)
Creates aJarFile
from the specifiedURL
.
-