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.StringConfigurationProperty.Metadata. getDeclaredClass()Get the declared class name.java.lang.StringConfigurationProperty.Metadata. getDeclaredField()Get the declared field name.java.lang.ObjectConfigurationProperty. getDefaultValue()java.lang.ObjectBeanProperty. getValue()java.lang.ObjectConfigurationProperty. getValue()Method parameters in io.microsphere.beans with annotations of type Nullable Modifier and Type Method Description voidConfigurationProperty.Metadata. setDeclaredClass(java.lang.String declaredClass)Set the declared class name.voidConfigurationProperty.Metadata. setDeclaredField(java.lang.String declaredField)Set the declared field name.voidConfigurationProperty. setDefaultValue(java.lang.Object defaultValue)voidConfigurationProperty. 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.URLArtifact. getLocation()Get the location of artifact resourcejava.lang.StringArtifact. getVersion()Get the versionprotected java.io.InputStreamStreamArtifactResourceResolver. readArtifactMetadataDataFromArchiveFile(java.io.File archiveFile)protected java.io.InputStreamStreamArtifactResourceResolver. readArtifactMetadataDataFromDirectory(java.io.File directory)protected java.io.InputStreamStreamArtifactResourceResolver. readArtifactMetadataDataFromFile(java.io.File archiveFile)protected java.io.InputStreamStreamArtifactResourceResolver. readArtifactMetadataDataFromResource(java.net.URL resourceURL, java.lang.ClassLoader classLoader)ArtifactArtifactResourceResolver. resolve(java.net.URL resourceURL)Resolve an instanceArtifactfromthe resourceof artifact.Method parameters in io.microsphere.classloading with annotations of type Nullable Modifier and Type Method Description static ArtifactArtifact. create(java.lang.String artifactId, java.lang.String version)static ArtifactArtifact. create(java.lang.String artifactId, java.lang.String version, java.net.URL location)static ArtifactArtifact. create(java.lang.String artifactId, java.lang.String version, java.net.URL location)static MavenArtifactMavenArtifact. create(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)static MavenArtifactMavenArtifact. create(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.net.URL location)static MavenArtifactMavenArtifact. 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 specifiedClassLoaderdefault booleanURLClassPathHandle. initializeLoaders(java.lang.ClassLoader classLoader)Initialize the loaders of URL Class-Path fromURLClassLoaderbooleanURLClassPathHandle. removeURL(java.lang.ClassLoader classLoader, java.net.URL url)Remove the Class-PathURLfrom the specifiedClassLoaderbooleanURLClassPathHandle. removeURL(java.lang.ClassLoader classLoader, java.net.URL url)Remove the Class-PathURLfrom the specifiedClassLoaderArtifactArtifactResourceResolver. resolve(java.net.URL resourceURL)Resolve an instanceArtifactfromthe resourceof 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> TCollectionUtils. first(java.lang.Iterable<T> values)Retrieves the first element from the givenIterable.static <T> TCollectionUtils. first(java.util.Collection<T> values)Retrieves the first element from the given collection.static <T> TCollectionUtils. first(java.util.Iterator<T> values)Retrieves the first element from the givenIterator.static <E> EListUtils. first(java.util.List<E> list)Retrieves the first element from the specified list.static <E> EListUtils. 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> intCollectionUtils. addAll(java.util.Collection<T> collection, java.lang.Iterable<T> newValues)Adds all the elements in the specifiedIterableto the given collection.static <T> intCollectionUtils. addAll(java.util.Collection<T> collection, java.lang.Iterable<T> newValues)Adds all the elements in the specifiedIterableto the given collection.static <T> intCollectionUtils. addAll(java.util.Collection<T> collection, T... newValues)Adds all the elements in the specified array to the given collection.static booleanCollectionUtils. equals(java.util.Collection<?> one, java.util.Collection<?> another)Compares two collections for equality, consideringnulland empty collections as equal.static booleanCollectionUtils. equals(java.util.Collection<?> one, java.util.Collection<?> another)Compares two collections for equality, consideringnulland empty collections as equal.static <T> TCollectionUtils. first(java.lang.Iterable<T> values)Retrieves the first element from the givenIterable.static <T> TCollectionUtils. first(java.util.Collection<T> values)Retrieves the first element from the given collection.static <T> TCollectionUtils. first(java.util.Iterator<T> values)Retrieves the first element from the givenIterator.static booleanCollectionUtils. isEmpty(java.util.Collection<?> collection)Checks if the provided collection is null or empty.static booleanEnumerationUtils. isEnumeration(java.lang.Class<?> type)Checks if the given class type is assignable fromEnumeration.static booleanEnumerationUtils. isEnumeration(java.lang.Object values)Checks if the given object is an instance ofEnumeration.static booleanListUtils. isList(java.lang.Class<?> type)Checks if the specified type is assignable fromList.static booleanListUtils. isList(java.lang.Object values)Checks if the specified object is an instance ofList.static booleanCollectionUtils. isNotEmpty(java.util.Collection<?> collection)Checks if the provided collection is not null and not empty.static booleanQueueUtils. isQueue(java.lang.Class<?> type)Checks whether the specifiedtypeis an instance ofQueue.static booleanQueueUtils. isQueue(java.lang.Object values)Checks whether the specifiedIterableis an instance ofQueue.static booleanSetUtils. isSet(java.lang.Class<?> type)Checks whether the specifiedtypeis assignable fromSetinterface.static booleanSetUtils. isSet(java.lang.Object values)Checks whether the specifiedIterableis an instance ofSet.static <E> java.util.Enumeration<E>CollectionUtils. singletonEnumeration(E element)Creates a singleton read-onlyEnumerationthat contains only the specified element.static <E> java.lang.Iterable<E>CollectionUtils. singletonIterable(E element)Creates a singletonIterablethat contains only the specified element.static <E> java.util.Iterator<E>CollectionUtils. singletonIterator(E element)Creates a singleton read-onlyIteratorthat contains only the specified element.static intCollectionUtils. size(java.lang.Iterable<?> iterable)Returns the size of the specifiedIterable.static intCollectionUtils. 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 nullableCollectioninto anIterable.static <E> java.lang.Iterable<E>CollectionUtils. toIterable(java.util.Enumeration<E> enumeration)Converts a nullableEnumerationinto anIterable.static <E> java.lang.Iterable<E>CollectionUtils. toIterable(java.util.Iterator<E> iterator)Converts a nullableIteratorinto anIterable.static <E> java.util.Iterator<E>CollectionUtils. toIterator(java.util.Enumeration<E> enumeration)Converts a nullableEnumerationinto 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 TAbstractConverter. convert(S source)TConverter. convert(S source)Convert the source-typed value to the target-typed valueprotected abstract TAbstractConverter. 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 TAbstractConverter. convert(S source)TConverter. 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.StringFileUtils. getFileExtension(java.lang.String fileName)Gets the extension of a file name, if any.static java.lang.StringFileUtils. 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> VJSONUtils. readValues(JSONArray jsonArray, java.lang.Class<V> multipleClass, java.lang.Class<?> elementClass)Reads aJSONArrayand converts it into an instance of the specified collection or array type.static java.lang.ObjectJSONUtils. readValues(JSONArray jsonArray, java.lang.reflect.Type targetType)Reads aJSONArrayand converts it into an instance of the specified target type.static <V> VJSONUtils. 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.StringJSONUtils. writeValueAsString(java.lang.Object object)Converts an object into its JSON string representation.Method parameters in io.microsphere.json with annotations of type Nullable Modifier and Type Method Description static java.lang.StringJSONUtils. escape(java.lang.String v)Escapes a string for JSON formatting. -
Uses of Nullable in io.microsphere.lang
Methods in io.microsphere.lang with annotations of type Nullable Modifier and Type Method Description java.lang.StringClassDataRepository. findClassPath(java.lang.Class<?> type)Find class path under specified class namejava.lang.StringClassDataRepository. findClassPath(java.lang.String className)Find class path under specified class namejava.lang.StringDeprecation. getLink()java.lang.StringDeprecation. getReason()java.lang.StringDeprecation. getReplacement()VersionDeprecation. getSince()Method parameters in io.microsphere.lang with annotations of type Nullable Modifier and Type Method Description Deprecation.BuilderDeprecation.Builder. level(Deprecation.Level level)Deprecation.BuilderDeprecation.Builder. link(java.lang.String link)Deprecation.BuilderDeprecation.Builder. reason(java.lang.String reason)Deprecation.BuilderDeprecation.Builder. replacement(java.lang.String replacement)Deprecation.BuilderDeprecation.Builder. since(Version since)Deprecation.BuilderDeprecation.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> TStreams. filterFirst(java.lang.Iterable<T> values, java.util.function.Predicate<? super T>... predicates)Filters elements from the givenIterableusing 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.MBeanAttributeInfoJmxUtils. 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.ObjectJmxUtils. 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.ObjectJmxUtils. 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.ObjectJmxUtils. 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 ofConfigurationPropertyinstances.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.StringURLUtils. 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.StringURLUtils. getSubProtocol(java.lang.String url)Extracts the first sub-protocol value from the specified URL string.static java.net.URLStreamHandlerFactoryURLUtils. getURLStreamHandlerFactory()Retrieves the current system-wideURLStreamHandlerFactory.static java.lang.StringURLUtils. normalizePath(java.lang.String path)Normalizes a given path by removing redundant slashes or backslashes and standardizing separators.static java.lang.StringURLUtils. resolveArchiveEntryPath(java.net.URL archiveFileURL)Resolves the archive entry path from the given URL.static java.io.FileURLUtils. resolveArchiveFile(java.net.URL resourceURL)Resolves the archive file from the specified URL.static java.lang.StringURLUtils. resolveAuthority(java.lang.String authority)Resolves the authority part from the specified URL string by truncating any matrix parameters.static java.lang.StringURLUtils. resolveProtocol(java.lang.String url)Resolves the protocol from the specified URL string.static java.util.jar.JarFileURLUtils. toJarFile(java.net.URL url)Converts the provided URL to aJarFileinstance 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 DeprecationReflectiveDefinition. deprecationstatic java.lang.Class<? extends java.lang.Throwable>ReflectionUtils. INACCESSIBLE_OBJECT_EXCEPTION_CLASSTheclassof java.lang.reflect.InaccessibleObjectException since JDK 9.Methods in io.microsphere.reflect with annotations of type Nullable Modifier and Type Method Description JavaTypeJavaType. 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 givenTypeto aClassif possible.static java.lang.reflect.GenericArrayTypeTypeUtils. asGenericArrayType(java.lang.reflect.Type type)Converts the givenTypeto aGenericArrayTypeif possible.static java.lang.reflect.ParameterizedTypeTypeUtils. asParameterizedType(java.lang.reflect.Type type)Converts the givenTypeto aParameterizedTypeif possible.static java.lang.reflect.TypeVariableTypeUtils. asTypeVariable(java.lang.reflect.Type type)Converts the givenTypeto aTypeVariableif possible.static java.lang.reflect.WildcardTypeTypeUtils. asWildcardType(java.lang.reflect.Type type)Converts the givenTypeto aWildcardTypeif 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.MethodMethodUtils. 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.FieldFieldUtils. findField(java.lang.Class<?> klass, java.lang.String fieldName)Finds aFieldin the specified class by its name.static java.lang.reflect.FieldFieldUtils. findField(java.lang.Class<?> klass, java.lang.String fieldName, java.lang.Class<?> fieldType)Find the declaredFieldby its name and type.static java.lang.reflect.FieldFieldUtils. findField(java.lang.Class<?> klass, java.lang.String fieldName, java.util.function.Predicate<? super java.lang.reflect.Field>... predicates)Find the declaredFieldby its name and apply additional filtering conditions.static java.lang.reflect.FieldFieldUtils. findField(java.lang.Object object, java.lang.String fieldName)Find the specified object's declaredFieldby its name.static java.lang.reflect.MethodMethodUtils. findMethod(java.lang.Class targetClass, java.lang.String methodName)Find theMethodby the specified type (including inherited types) and method name without the parameter type.static java.lang.reflect.MethodMethodUtils. findMethod(java.lang.Class targetClass, java.lang.String methodName, java.lang.Class<?>... parameterTypes)Find theMethodby the specified type (including inherited types), method name, and parameter types.static java.lang.reflect.MethodMethodUtils. findNearestOverriddenMethod(java.lang.reflect.Method overrider)Finds the nearest overridden method in the class hierarchy for the given overriding method.static java.lang.reflect.MethodMethodUtils. 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 JavaTypeJavaType. 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.StringTypeUtils. getClassName(java.lang.reflect.Type type)Gets the fully qualified name of the class represented by the givenType.static java.lang.reflect.TypeTypeUtils. 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 theConstructorstatic <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.FieldFieldUtils. getDeclaredField(java.lang.Class<?> declaredClass, java.lang.String fieldName)Retrieves the declared field with the specified name from the given class.DeprecationReflectiveDefinition. getDeprecation()Get the deprecationstatic <V> VFieldUtils. getFieldValue(java.lang.Object instance, java.lang.reflect.Field field)Retrieves the value of the specifiedFieldfrom the given object instance.static <V> VFieldUtils. 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> VFieldUtils. 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> VFieldUtils. 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.MMemberDefinition. getMember()Get the member instancejava.lang.reflect.MethodMethodDefinition. getMethod()The resolved methodstatic java.lang.Class<?>TypeUtils. getRawClass(java.lang.reflect.Type type)Gets the raw class of the specifiedType, if it is aParameterizedTypeor aClass.java.lang.reflect.TypeJavaType. getRawType()Retrieves the raw type represented by this JavaType.static java.lang.reflect.TypeTypeUtils. 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.FieldFieldDefinition. getResolvedField()JavaTypeJavaType. getRootSource()Retrieves the root source JavaType from which this type was ultimately derived, if available.JavaTypeJavaType. getSource()Retrieves the source JavaType from which this type was derived, if available.static <T> TFieldUtils. getStaticFieldValue(java.lang.Class<?> klass, java.lang.String fieldName)Retrieves the value of a static field from the specified class.static <T> TFieldUtils. getStaticFieldValue(java.lang.reflect.Field field)Retrieves the value of a static field.JavaTypeJavaType. getSuperType()Retrieves the supertype of this JavaType.static java.lang.StringTypeUtils. getTypeName(java.lang.reflect.Type type)Gets the fully qualified type name of the givenType.static <R> RMethodUtils. 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> RMethodUtils. invokeMethod(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object... arguments)Invokes the underlying method represented by thisMethodobject, on the specified object with the specified parameters.static <R> RMethodUtils. 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> RMethodUtils. 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> RMethodUtils. invokeStaticMethod(java.lang.reflect.Method method, java.lang.Object... arguments)Invokes the specified static method represented by the givenMethodobject.static java.lang.ClassTypeUtils. 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> VFieldUtils. setFieldValue(java.lang.Object instance, java.lang.reflect.Field field, V value)Sets the value of the specifiedFieldin the given object instance.static <V> VFieldUtils. 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> VFieldUtils. 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 aClassif possible.java.lang.reflect.GenericArrayTypeJavaType. toGenericArrayType()Converts this JavaType to aGenericArrayTypeif possible.java.lang.reflect.ParameterizedTypeJavaType. toParameterizedType()Converts this JavaType to aParameterizedTypeif possible.java.lang.reflect.TypeVariableJavaType. toTypeVariable()Converts this JavaType to aTypeVariableif possible.java.lang.reflect.WildcardTypeJavaType. toWildcardType()Converts this JavaType to aWildcardTypeif possible.Method parameters in io.microsphere.reflect with annotations of type Nullable Modifier and Type Method Description static java.lang.StringTypeUtils. 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> RMethodUtils. invokeMethod(java.lang.Object instance, java.lang.reflect.Method method, java.lang.Object... arguments)Invokes the underlying method represented by thisMethodobject, 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_CLASSTheClassof java.lang.StackWalker that was introduced in JDK 9.static java.lang.Class<?>StackTraceUtils. STACK_WALKER_OPTION_CLASSTheClassof java.lang.StackWalker.Option that was introduced in JDK 9.static java.lang.Class<?>StackTraceUtils. STACK_WALKER_STACK_FRAME_CLASSTheClassof 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> TClassUtils. 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 specifiedAnnotatedElementthat matches all the given filters.static <T> TAnnotationUtils. 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 givenClassLoaderor its parent hierarchy.static java.net.URLClassLoaderClassLoaderUtils. findURLClassLoader(java.lang.ClassLoader classLoader)Attempts to find and return the firstURLClassLoaderin the hierarchy starting from the provided ClassLoader.RCompatible. get()static <T> TAnnotationUtils. getAttributeValue(java.lang.annotation.Annotation annotation, java.lang.String attributeName)Retrieves the value of the specified attribute from the given annotation.static java.lang.ClassLoaderClassLoaderUtils. getCallerClassLoader()Retrieves theClassLoaderof the caller class from the call stack.static java.lang.Class<?>ClassUtils. getClass(java.lang.Object object)Gets theClassof the given object.static java.lang.ClassLoaderClassLoaderUtils. getClassLoader(java.lang.Class<?> loadedClass)Get the ClassLoader from the loaded class if present.static java.net.URLClassLoaderUtils. getClassResource(java.lang.Class<?> type)Returns the resource URL for the class file corresponding to the specified class.static java.net.URLClassLoaderUtils. getClassResource(java.lang.ClassLoader classLoader, java.lang.Class<?> type)Get theClassresource URL under specifiedClassstatic java.lang.ClassLoaderClassLoaderUtils. getDefaultClassLoader()Retrieves the default ClassLoader to use when none is explicitly provided.java.lang.StringVersion. getPreRelease()The pre-releasestatic java.net.URLClassLoaderUtils. 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.URLClassLoaderUtils. 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.URLClassLoaderUtils. getResource(java.lang.String resourceName)Get the resource URL under specified resource name using the default ClassLoader.static java.lang.StringClassLoaderUtils. 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.StringClassLoaderUtils. getResourceAsString(java.lang.String resourceName)Gets the content of the specified resource as a String using the default ClassLoader.static java.net.URLClassPathUtils. getRuntimeClassLocation(java.lang.Class<?> type)Get Class Location URL from specifiedClassat runtime.static java.net.URLClassPathUtils. getRuntimeClassLocation(java.lang.String className)Get Class Location URL from specified class name at runtime.static java.lang.StringClassUtils. getSimpleName(java.lang.Class<?> type)Gets the simple name of the given class.static java.lang.StringSystemUtils. getSystemProperty(java.lang.String key)Gets a system property with the given key, defaulting tonullif the property cannot be read.static java.lang.StringSystemUtils. getSystemProperty(java.lang.String key, java.lang.String defaultValue)Gets a system property with the given key, defaulting to the provideddefaultValueif 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.StringClassUtils. getTypeName(java.lang.Class<?> type)Gets the type name of the given class.static java.lang.StringClassUtils. 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.StringClassUtils. resolveClassName(java.lang.String resourceName)Resolves the fully qualified class name from a resource name.static java.lang.StringClassUtils. 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 booleanShutdownHookUtils. addShutdownHookCallback(java.lang.Runnable callback)Adds a shutdown hook callback to be executed during JVM shutdown.static booleanClassUtils. arrayTypeEquals(java.lang.Class<?> oneArrayType, java.lang.Class<?> anotherArrayType)Checks if two array types are equivalent, including nested arrays.static booleanClassUtils. arrayTypeEquals(java.lang.Class<?> oneArrayType, java.lang.Class<?> anotherArrayType)Checks if two array types are equivalent, including nested arrays.static voidAssert. assertNoNullElements(java.lang.Iterable<?> elements, java.lang.String message)Assert that a elements contains nonullelements.static voidAssert. assertNoNullElements(java.lang.Iterable<?> elements, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that a elements contains nonullelements.static voidAssert. assertNoNullElements(java.lang.Object[] array, java.lang.String message)Assert that an array contains nonullelements.static voidAssert. assertNoNullElements(java.lang.Object[] array, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that an array contains nonullelements.static voidAssert. assertNotBlank(java.lang.String text, java.lang.String message)Assert that a string is not blank.static voidAssert. assertNotBlank(java.lang.String text, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that a string is not blank.static voidAssert. assertNotEmpty(java.lang.Object[] array, java.lang.String message)Assert that an array contains elements; that is, it must not benulland must contain at least one element.static voidAssert. assertNotEmpty(java.lang.Object[] array, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that an array contains elements; that is, it must not benulland must contain at least one element.static voidAssert. assertNotEmpty(java.lang.String text, java.lang.String message)Assert that a string is not empty ("").static voidAssert. assertNotEmpty(java.lang.String text, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that a string is not empty ("").static voidAssert. assertNotEmpty(java.util.Collection<?> collection, java.lang.String message)Assert that a collection contains elements; that is, it must not benulland must contain at least one element.static voidAssert. assertNotEmpty(java.util.Collection<?> collection, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that a collection contains elements; that is, it must not benulland must contain at least one element.static voidAssert. assertNotEmpty(java.util.Map<?,?> map, java.lang.String message)Assert that a Map contains entries; that is, it must not benulland must contain at least one entry.static voidAssert. assertNotEmpty(java.util.Map<?,?> map, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that a Map contains entries; that is, it must not benulland must contain at least one entry.static voidAssert. assertNotNull(java.lang.Object object, java.lang.String message)Assert that an object is notnull.static voidAssert. assertNotNull(java.lang.Object object, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that an object is notnull.static voidAssert. assertNull(java.lang.Object object, java.lang.String message)Assert that an object isnull.static voidAssert. assertNull(java.lang.Object object, java.util.function.Supplier<java.lang.String> messageSupplier)Assert that an object isnull.static <T> TClassUtils. cast(java.lang.Object object, java.lang.Class<T> castType)Casts the given object to the specified type if possible.static <T> TClassUtils. cast(java.lang.Object object, java.lang.Class<T> castType)Casts the given object to the specified type if possible.static booleanCharSequenceUtils. containsWhitespace(java.lang.CharSequence str)Checks whether the givenCharSequencecontains any whitespace characters.static booleanStringUtils. containsWhitespace(java.lang.String str)Checks whether the givenStringcontains 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 givenClassLoaderor 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.URLClassLoaderClassLoaderUtils. findURLClassLoader(java.lang.ClassLoader classLoader)Attempts to find and return the firstURLClassLoaderin the hierarchy starting from the provided ClassLoader.static <E> voidIterableUtils. forEach(java.lang.Iterable<E> elements, java.util.function.Consumer<E> elementConsumer)Iterates over the givenIterableand applies the providedConsumerto each element.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 theClassof the given object.static java.lang.Class<?>[]ClassUtils. getClasses(java.lang.Object... values)Get thetypesof the specified valuesstatic java.lang.ClassLoaderClassLoaderUtils. getClassLoader(java.lang.Class<?> loadedClass)Get the ClassLoader from the loaded class if present.static java.net.URLClassLoaderUtils. getClassResource(java.lang.ClassLoader classLoader, java.lang.Class<?> type)Get theClassresource URL under specifiedClassstatic java.net.URLClassLoaderUtils. 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.URLClassLoaderUtils. 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.URLClassLoaderUtils. 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.StringClassLoaderUtils. 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.StringClassUtils. 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.StringClassUtils. getTypeName(java.lang.Class<?> type)Gets the type name of the given class.static java.lang.StringClassUtils. 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 booleanClassUtils. isAbstractClass(java.lang.Class<?> type)Checks if the specified type is an abstract class.static booleanClassUtils. isArray(java.lang.Class<?> type)Checks if the specified type is an array.static booleanClassUtils. isAssignableFrom(java.lang.Class<?> superType, java.lang.Class<?> targetType)Checks if thesuperTypeis assignable from thetargetType.static booleanClassUtils. isAssignableFrom(java.lang.Class<?> superType, java.lang.Class<?> targetType)Checks if thesuperTypeis assignable from thetargetType.static booleanClassUtils. isCharSequence(java.lang.Class<?> type)Checks if the given type is a subtype ofCharSequence.static booleanClassUtils. isCharSequence(java.lang.Object value)Checks if the given object is an instance ofCharSequence.static booleanClassUtils. isClass(java.lang.Object object)Checks if the given object is an instance ofClass.static booleanClassUtils. isConcreteClass(java.lang.Class<?> type)Checks if the specified type is a concrete class.static booleanClassUtils. isDerived(java.lang.Class<?> targetType, java.lang.Class<?>... superTypes)Checks if thetargetTypeis derived from any of the specifiedsuperTypes.static booleanClassUtils. isDerived(java.lang.Class<?> targetType, java.lang.Class<?>... superTypes)Checks if thetargetTypeis derived from any of the specifiedsuperTypes.static booleanCharSequenceUtils. isEmpty(java.lang.CharSequence value)Checks if the providedCharSequenceis empty.static booleanClassUtils. isEnum(java.lang.Class<?> type)Checks if the specified class is an enum.static booleanClassUtils. isEnum(java.lang.Object object)Checks if the given object is an instance ofEnum.static booleanClassUtils. isFinal(java.lang.Class<?> type)Checks if the specified class is a final class.static booleanClassUtils. isGeneralClass(java.lang.Class<?> type)Checks if the specified type is a general class.protected static booleanClassUtils. isGeneralClass(java.lang.Class<?> type, java.lang.Boolean isAbstract)Is the specified type a general class or not?protected static booleanClassUtils. isGeneralClass(java.lang.Class<?> type, java.lang.Boolean isAbstract)Is the specified type a general class or not?static booleanIterableUtils. isIterable(java.lang.Class<?> clazz)Checks if the given class is assignable fromIterable.static booleanIterableUtils. isIterable(java.lang.Object object)Checks if the given object is an instance ofIterable.static booleanClassLoaderUtils. 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 booleanClassLoaderUtils. 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 booleanCharSequenceUtils. isNotEmpty(java.lang.CharSequence value)Checks if the providedCharSequenceis not empty.static booleanClassUtils. isNumber(java.lang.Class<?> type)Checks if the given type is a subtype ofNumber.static booleanClassUtils. isNumber(java.lang.Object value)Checks if the given object is an instance ofNumber.static booleanClassLoaderUtils. isPresent(java.lang.String className)Checks if a class with the specified name is present in the default ClassLoader.static booleanClassLoaderUtils. 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 booleanClassLoaderUtils. 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 booleanClassUtils. isPrimitive(java.lang.Class<?> type)Checks if the specified class is a primitive type.static booleanClassUtils. isSimpleType(java.lang.Class<?> type)Checks if the specified type is a simple type.static booleanClassUtils. isSimpleType(java.lang.Object object)Checks if the specified object is a simple type.static booleanClassUtils. isTopLevelClass(java.lang.Class<?> type)Checks if the specified class is a top-level class.static booleanClassUtils. isWrapperType(java.lang.Class<?> type)Checks if the specified class is a wrapper type.static booleanClassUtils. isWrapperType(java.lang.Object value)Checks if the specified object is a wrapper type.static <E> voidIterableUtils. iterate(java.lang.Iterable<E> elements, java.util.function.Consumer<E> elementConsumer)Iterates over the givenIterableand applies the providedConsumerto each element.static intCharSequenceUtils. 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> SServiceLoaderUtils. loadFirstService(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader)Loads the first instance of the specifiedServiceLoaderservice type using the providedClassLoader.static <S> SServiceLoaderUtils. loadFirstService(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader, boolean cached)Loads the first instance of the specifiedServiceLoaderservice type using the providedClassLoader, with an option to enable or disable caching of the loaded services.static <S> SServiceLoaderUtils. loadLastService(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader)Loads the last instance of the specifiedServiceLoaderservice type using the providedClassLoader.static <S> SServiceLoaderUtils. loadLastService(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader, boolean cached)Loads the last instance of the specifiedServiceLoaderservice 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 specifiedServiceLoaderservice 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 specifiedServiceLoaderservice 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 specifiedServiceLoaderservice 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 specifiedServiceLoaderservice type using the providedClassLoader, with an option to enable or disable caching of the loaded services.static java.net.URLClassLoaderClassLoaderUtils. newURLClassLoader(java.lang.Iterable<java.net.URL> urls, java.lang.ClassLoader classLoader)Creates a new instance ofURLClassLoaderusing the URLs provided in anIterable.static java.net.URLClassLoaderClassLoaderUtils. newURLClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent)Creates a new instance ofURLClassLoaderusing the provided array of URLs and an optional parent ClassLoader.static java.net.URLClassLoaderClassLoaderUtils. newURLClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent, boolean initializedLoaders)Create a new instance ofURLClassLoaderstatic booleanClassLoaderUtils. 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 booleanShutdownHookUtils. 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.StringClassUtils. resolveClassName(java.lang.String resourceName)Resolves the fully qualified class name from a resource name.static java.lang.StringClassUtils. resolvePackageName(java.lang.Class<?> targetClass)Resolve the package name of the given class.static java.lang.StringClassUtils. 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.URLClassLoaderClassLoaderUtils. resolveURLClassLoader(java.lang.ClassLoader classLoader)Resolves or creates aURLClassLoaderinstance 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.String[]StringUtils. split(java.lang.String value, char delimiter)Splits the provided String into an array of Strings using the specified char delimiter.static java.lang.String[]StringUtils. split(java.lang.String value, java.lang.String delimiter)Splits the provided String into an array of Strings using the specified String delimiter.static java.lang.String[]StringUtils. split(java.lang.String value, java.lang.String delimiter)Splits the provided String into an array of Strings using the specified String delimiter.static java.lang.String[]StringUtils. toStringArray(java.util.Collection<java.lang.String> collection)Convert the givenCollectioninto aStringarray.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.JarEntryJarUtils. findJarEntry(java.net.URL jarURL)Finds and returns theJarEntryfrom the specified JAR URL.static java.lang.StringJarUtils. resolveJarAbsolutePath(java.net.URL jarURL)Resolves the absolute path of the JAR file from the provided URL.static java.lang.StringJarUtils. resolveRelativePath(java.net.URL jarURL)Resolves the relative path from the given JAR URL.static java.util.jar.JarFileJarUtils. toJarFile(java.net.URL jarURL)Creates aJarFilefrom the specifiedURL.
-