Uses of Class
io.microsphere.annotation.Immutable
-
-
Uses of Immutable in io.microsphere.beans
Methods in io.microsphere.beans with annotations of type Immutable Modifier and Type Method Description java.util.Collection<java.beans.PropertyDescriptor>
BeanMetadata. getPropertyDescriptors()
java.util.Map<java.lang.String,java.beans.PropertyDescriptor>
BeanMetadata. getPropertyDescriptorsMap()
static java.util.Map<java.lang.String,java.lang.Object>
BeanUtils. resolvePropertiesAsMap(java.lang.Object bean)
Resolves the properties of a given Java Bean and returns them as aMap
.static java.util.Map<java.lang.String,java.lang.Object>
BeanUtils. resolvePropertiesAsMap(java.lang.Object bean, int maxResolvedDepth)
Resolves the properties of a given Java Bean up to a specified maximum depth and returns them as aMap
.protected static java.util.Map<java.lang.String,java.lang.Object>
BeanUtils. resolvePropertiesAsMap(java.lang.Object bean, MutableInteger resolvedDepth, int maxResolvedDepth)
Resolves the properties of a given Java Bean recursively up to a specified maximum depth, tracking the current depth with aMutableInteger
, and returns them as aMap
. -
Uses of Immutable in io.microsphere.classloading
Classes in io.microsphere.classloading with annotations of type Immutable Modifier and Type Class Description class
Artifact
Represents a software artifact with attributes such as artifact ID, version, and location.class
MavenArtifact
Represents a Maven software artifact with attributes such as group ID, artifact ID, version, and location.Methods in io.microsphere.classloading with annotations of type Immutable Modifier and Type Method Description java.util.List<Artifact>
ArtifactDetector. detect()
java.util.List<Artifact>
ArtifactDetector. detect(boolean includedJdkLibraries)
protected java.util.List<Artifact>
ArtifactDetector. detect(java.util.Set<java.net.URL> classPathURLs)
-
Uses of Immutable in io.microsphere.collection
Classes in io.microsphere.collection with annotations of type Immutable Modifier and Type Class Description class
EmptyDeque<E>
An empty and immutableDeque
implementation that throwsUnsupportedOperationException
for methods that attempt to modify the deque, and returns appropriate default values for read-only operations.class
EmptyIterable<E>
An emptyIterable
implementation that always returns an empty iterator.class
EmptyIterator<E>
An empty and immutable implementation of theIterator
interface.class
ImmutableEntry<K,V>
An immutable implementation ofMap.Entry
that stores a fixed key-value pair.class
ReadOnlyIterator<E>
A skeletal implementation of theIterator
interface, designed to support read-only iteration.class
SingletonDeque<E>
ADeque
implementation that holds a single, immutable element.class
SingletonEnumeration<E>
A simple implementation of theEnumeration
interface that contains a single element.class
SingletonIterator<E>
A specialized read-onlyIterator
implementation that iterates over a single element.class
UnmodifiableDeque<E>
An unmodifiable view of aDeque
.class
UnmodifiableIterator<E>
AnIterator
that is unmodifiable, meaning the elements cannot be removed.class
UnmodifiableQueue<E>
An unmodifiable view of aQueue
.Methods in io.microsphere.collection with annotations of type Immutable Modifier and Type Method Description static <T> java.util.Deque<T>
CollectionUtils. emptyDeque()
Returns an empty, immutableDeque
instance that throwsUnsupportedOperationException
for all modification operations.static <E> java.util.Deque<E>
QueueUtils. emptyDeque()
Returns an empty immutable deque instance.static <E> java.lang.Iterable<E>
CollectionUtils. emptyIterable()
Returns an empty, immutableIterable
that contains no elements.static <E> java.util.Iterator<E>
CollectionUtils. emptyIterator()
Returns an empty iterator that contains no elements.static <T> java.util.Queue<T>
CollectionUtils. emptyQueue()
Returns an empty, immutableQueue
that throwsUnsupportedOperationException
for all modification operations.static <E> java.util.Queue<E>
QueueUtils. emptyQueue()
Returns an empty immutable queue instance.static java.util.Map<java.lang.String,java.lang.Object>
PropertiesUtils. flatProperties(java.util.Map<java.lang.String,java.lang.Object> properties)
Flattens a nested map of properties into a single-level map.static java.util.Map<java.lang.String,java.lang.Object>
MapUtils. flattenMap(java.util.Map<java.lang.String,java.lang.Object> map)
Flattens a nested map of properties into a single-level map.static <K,V>
java.util.Map.Entry<K,V>MapUtils. immutableEntry(K key, V value)
Creates an immutableMap.Entry
with the specified key and value.static java.util.Map<java.lang.String,java.lang.Object>
MapUtils. nestedMap(java.util.Map<java.lang.String,java.lang.Object> map)
Converts a flat map with dot-separated keys into a nested map structure.static <E> java.util.List<E>
ListUtils. of(E... elements)
Creates an immutable list from the given elements.static java.util.Map
MapUtils. of(java.lang.Object... values)
Creates an immutable map from a varargs array of key-value pairs.static <K,V>
java.util.Map<K,V>MapUtils. of(java.util.Map.Entry<? extends K,? extends V>... entries)
Creates an immutable map from the provided array ofMap.Entry
objects.static <K,V>
java.util.Map<K,V>MapUtils. of(K key, V value)
Creates an immutable map containing a single key-value pair.static <K,V>
java.util.Map<K,V>MapUtils. of(K key1, V value1, K key2, V value2)
Creates an immutable map containing two key-value pairs.static <K,V>
java.util.Map<K,V>MapUtils. of(K key1, V value1, K key2, V value2, K key3, V value3)
Creates an immutable map containing three key-value pairs.static <K,V>
java.util.Map<K,V>MapUtils. of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
Creates an immutable map containing four key-value pairs.static <K,V>
java.util.Map<K,V>MapUtils. of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5)
Creates an immutable map containing five key-value pairs.static <E> java.util.List<E>
Lists. ofList()
Returns an empty unmodifiable list.static <E> java.util.List<E>
Lists. ofList(E e1)
Returns an unmodifiable list containing one element.static <E> java.util.List<E>
Lists. ofList(E... elements)
Returns an unmodifiable list containing the specified elements.static <E> java.util.List<E>
Lists. ofList(E e1, E e2)
Returns an unmodifiable list containing two elements.static <E> java.util.List<E>
Lists. ofList(E e1, E e2, E e3)
Returns an unmodifiable list containing three elements.static <E> java.util.List<E>
Lists. ofList(E e1, E e2, E e3, E e4)
Returns an unmodifiable list containing four elements.static <E> java.util.List<E>
Lists. ofList(E e1, E e2, E e3, E e4, E e5)
Returns an unmodifiable list containing five elements.static <E> java.util.List<E>
Lists. ofList(E e1, E e2, E e3, E e4, E e5, E e6, E e7)
Returns an unmodifiable list containing seven elements.static <E> java.util.List<E>
Lists. ofList(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8)
Returns an unmodifiable list containing eight elements.static <E> java.util.List<E>
Lists. ofList(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9)
Returns an unmodifiable list containing nine elements.static <E> java.util.List<E>
ListUtils. ofList(E... elements)
Creates an immutable list from the given array of elements.static <E> java.util.List<E>
ListUtils. ofList(java.lang.Iterable<E> iterable)
Creates an immutable list from the specifiedIterable
.static <E> java.util.List<E>
ListUtils. ofList(java.util.Enumeration<E> enumeration)
Creates an immutable list from the specifiedEnumeration
.static <E> java.util.List<E>
ListUtils. ofList(java.util.Iterator<E> iterator)
Creates an immutable list from the specifiedIterator
.static <K,V>
java.util.Map<K,V>Maps. ofMap()
Returns an unmodifiable empty map.static <K,V>
java.util.Map<K,V>Maps. ofMap(java.util.Map.Entry<? extends K,? extends V>... entries)
Returns an unmodifiable map containing the provided entries.static <K,V>
java.util.Map<K,V>Maps. ofMap(K k1, V v1)
Returns an unmodifiable map containing a single mapping.static <K,V>
java.util.Map<K,V>Maps. ofMap(K k1, V v1, K k2, V v2)
Returns an unmodifiable map containing two mappings.static <K,V>
java.util.Map<K,V>Maps. ofMap(K k1, V v1, K k2, V v2, K k3, V v3)
Returns an unmodifiable map containing three mappings.static <K,V>
java.util.Map<K,V>Maps. ofMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4)
Returns an unmodifiable map containing four mappings.static <K,V>
java.util.Map<K,V>Maps. ofMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5)
Returns an unmodifiable map containing five mappings.static <K,V>
java.util.Map<K,V>Maps. ofMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6)
Returns an unmodifiable map containing six mappings.static <K,V>
java.util.Map<K,V>Maps. ofMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7)
Returns an unmodifiable map containing seven mappings.static <K,V>
java.util.Map<K,V>Maps. ofMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8)
Returns an unmodifiable map containing eight mappings.static <K,V>
java.util.Map<K,V>Maps. ofMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9)
Returns an unmodifiable map containing nine mappings.static <K,V>
java.util.Map<K,V>Maps. ofMap(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10)
Returns an unmodifiable map containing ten mappings.static java.util.Map
MapUtils. ofMap(java.lang.Object... keyValuePairs)
Creates an immutable map from a varargs array of key-value pairs.static <K,V>
java.util.Map<K,V>MapUtils. ofMap(K key, V value)
Creates an immutable map containing a single key-value pair.static <E> java.util.Queue<E>
QueueUtils. ofQueue(E... elements)
Creates an immutable queue containing the specified elements.static <E> java.util.Set<E>
Sets. ofSet()
Returns an empty unmodifiable set.static <E> java.util.Set<E>
Sets. ofSet(E e1)
Returns an unmodifiable set containing one element.static <E> java.util.Set<E>
Sets. ofSet(E... elements)
Returns an unmodifiable set containing the provided elements.static <E> java.util.Set<E>
Sets. ofSet(E e1, E e2)
Returns an unmodifiable set containing two elements.static <E> java.util.Set<E>
Sets. ofSet(E e1, E e2, E e3)
Returns an unmodifiable set containing three elements.static <E> java.util.Set<E>
Sets. ofSet(E e1, E e2, E e3, E e4)
Returns an unmodifiable set containing four elements.static <E> java.util.Set<E>
Sets. ofSet(E e1, E e2, E e3, E e4, E e5)
Returns an unmodifiable set containing five elements.static <E> java.util.Set<E>
Sets. ofSet(E e1, E e2, E e3, E e4, E e5, E e6)
Returns an unmodifiable set containing six elements.static <E> java.util.Set<E>
Sets. ofSet(E e1, E e2, E e3, E e4, E e5, E e6, E e7)
Returns an unmodifiable set containing seven elements.static <E> java.util.Set<E>
Sets. ofSet(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8)
Returns an unmodifiable set containing eight elements.static <E> java.util.Set<E>
Sets. ofSet(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9)
Returns an unmodifiable set containing nine elements.static <E> java.util.Set<E>
Sets. ofSet(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10)
Returns an unmodifiable set containing ten elements.static <E> java.util.Set<E>
SetUtils. ofSet(E... elements)
Creates an unmodifiableSet
from the given varargs array of elements.static <E> java.util.Set<E>
SetUtils. ofSet(java.lang.Iterable<E> elements)
Creates an unmodifiableSet
from the givenIterable
.static <T> java.util.Set<T>
SetUtils. ofSet(java.util.Collection<T> elements)
Creates an unmodifiableSet
from the givenCollection
.static <T> java.util.Set<T>
SetUtils. ofSet(java.util.Collection<T> elements, T... others)
Creates an unmodifiableSet
from the givenCollection
and additional varargs elements.static <E> java.util.Set<E>
SetUtils. ofSet(java.util.Enumeration<E> elements)
Creates an unmodifiableSet
from the givenEnumeration
.static <E> java.util.Deque<E>
QueueUtils. singletonDeque(E element)
Returns an immutable deque containing only the specified element.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 <E> java.util.Queue<E>
QueueUtils. singletonQueue(E element)
Returns an immutable queue containing only the specified element.static <K,V,E>
java.util.Map<K,V>MapUtils. toFixedMap(java.util.Collection<E> values, java.util.function.Function<E,java.util.Map.Entry<K,V>> entryMapper)
Converts a collection of elements into an immutable map using the provided function to extract key-value pairs.static <E> java.util.Deque<E>
QueueUtils. unmodifiableDeque(java.util.Deque<E> deque)
Returns an unmodifiable view of the given deque.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 Immutable in io.microsphere.event
Methods in io.microsphere.event with annotations of type Immutable Modifier and Type Method Description java.util.List<EventListener<?>>
AbstractEventDispatcher. getAllEventListeners()
-
Uses of Immutable in io.microsphere.filter
Methods in io.microsphere.filter with annotations of type Immutable Modifier and Type Method Description static <E> java.util.List<E>
FilterUtils. filter(java.lang.Iterable<E> iterable, Filter<E> filter)
FilterIterable
object to Liststatic <E> java.util.List<E>
FilterUtils. filter(java.lang.Iterable<E> iterable, FilterOperator filterOperator, Filter<E>... filters)
FilterIterable
object to List -
Uses of Immutable in io.microsphere.io
Fields in io.microsphere.io with annotations of type Immutable Modifier and Type Field Description static java.io.File[]
FileUtils. EMPTY_FILE_ARRAY
An empty immutableFile
array. -
Uses of Immutable in io.microsphere.io.event
Classes in io.microsphere.io.event with annotations of type Immutable Modifier and Type Class Description class
FileChangedEvent
The event raised when thefile
is changed -
Uses of Immutable in io.microsphere.io.scanner
Methods in io.microsphere.io.scanner with annotations of type Immutable Modifier and Type Method Description java.util.Set<java.lang.Class<?>>
SimpleClassScanner. scan(java.lang.ClassLoader classLoader, java.lang.String packageName)
It's equal to invokeSimpleClassScanner.scan(ClassLoader, String, boolean, boolean)
method withrequiredLoad=false
andrecursive=false
java.util.Set<java.lang.Class<?>>
SimpleClassScanner. scan(java.lang.ClassLoader classLoader, java.lang.String packageName, boolean recursive)
It's equal to invokeSimpleClassScanner.scan(ClassLoader, String, boolean, boolean)
method withrequiredLoad=false
java.util.Set<java.lang.Class<?>>
SimpleClassScanner. scan(java.lang.ClassLoader classLoader, java.lang.String packageName, boolean recursive, boolean requiredLoad)
scanClass
set under specified package name or its' sub-packages inClassLoader
, ifrequiredLoad
indicatestrue
, try to load those classes.java.util.Set<java.io.File>
SimpleFileScanner. scan(java.io.File rootDirectory, boolean recursive)
Scan allFile
Set
under root directoryjava.util.Set<java.io.File>
SimpleFileScanner. scan(java.io.File rootDirectory, boolean recursive, IOFileFilter ioFileFilter)
java.util.Set<java.util.jar.JarEntry>
SimpleJarEntryScanner. scan(java.net.URL jarURL, boolean recursive)
java.util.Set<java.util.jar.JarEntry>
SimpleJarEntryScanner. scan(java.net.URL jarURL, boolean recursive, JarEntryFilter jarEntryFilter)
java.util.Set<java.util.jar.JarEntry>
SimpleJarEntryScanner. scan(java.util.jar.JarFile jarFile, boolean recursive, JarEntryFilter jarEntryFilter)
protected java.util.Set<java.util.jar.JarEntry>
SimpleJarEntryScanner. scan(java.util.jar.JarFile jarFile, java.lang.String relativePath, boolean recursive, JarEntryFilter jarEntryFilter)
-
Uses of Immutable in io.microsphere.lang
Classes in io.microsphere.lang with annotations of type Immutable Modifier and Type Class Description class
ClassDataRepository
A repository class that manages and provides access to classpath and class-related metadata.class
Deprecation
A serializable class that provides detailed information about deprecation.Methods in io.microsphere.lang with annotations of type Immutable Modifier and Type Method Description java.util.Set<java.lang.String>
ClassDataRepository. getAllClassNamesInClassPaths()
The set of all class names inclass path
java.util.Set<java.lang.String>
ClassDataRepository. getAllPackageNamesInClassPaths()
Get all package names inclass paths
java.util.Set<java.lang.String>
ClassDataRepository. getClassNamesInClassPath(java.lang.String classPath, boolean recursive)
Gets class nameSet
under specified class pathjava.util.Set<java.lang.String>
ClassDataRepository. getClassNamesInPackage(java.lang.Package onePackage)
Gets class nameSet
under specified packagejava.util.Set<java.lang.String>
ClassDataRepository. getClassNamesInPackage(java.lang.String packageName)
Gets class nameSet
under specified package namejava.util.Map<java.lang.String,java.util.Set<java.lang.String>>
ClassDataRepository. getClassPathToClassNamesMap()
The map of all class names inclass path
, the class path for oneJarFile
or classes directory as key , the class names set as value -
Uses of Immutable in io.microsphere.lang.function
Fields in io.microsphere.lang.function with annotations of type Immutable Modifier and Type Field Description static java.util.function.Predicate[]
Predicates. EMPTY_PREDICATE_ARRAY
An empty array ofPredicate
instances.Methods in io.microsphere.lang.function with annotations of type Immutable Modifier and Type Method Description static <T> java.util.function.Predicate<T>
Predicates. alwaysFalse()
Returns aPredicate
that always evaluates tofalse
.static <T> java.util.function.Predicate<T>
Predicates. alwaysTrue()
Returns aPredicate
that always evaluates totrue
.static <T> java.util.function.Predicate<T>[]
Predicates. emptyArray()
Returns an empty array ofPredicate
instances. -
Uses of Immutable in io.microsphere.management
Methods in io.microsphere.management with annotations of type Immutable Modifier and Type Method Description static java.util.List<java.lang.management.GarbageCollectorMXBean>
JmxUtils. getGarbageCollectorMXBeans()
Returns a list ofGarbageCollectorMXBean
objects in the Java virtual machine.static java.util.Map<java.lang.String,MBeanAttribute>
JmxUtils. getMBeanAttributesMap(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName)
Retrieves a read-only map of MBean attributes for the specified MBean registered in the given MBeanServer.static java.util.List<java.lang.management.MemoryManagerMXBean>
JmxUtils. getMemoryManagerMXBeans()
Returns a list ofMemoryManagerMXBean
objects in the Java virtual machine.static java.util.List<java.lang.management.MemoryPoolMXBean>
JmxUtils. getMemoryPoolMXBeans()
Returns an unmodifiable list ofMemoryPoolMXBean
objects representing the memory pools in the Java virtual machine. -
Uses of Immutable in io.microsphere.metadata
Methods in io.microsphere.metadata with annotations of type Immutable Modifier and Type Method Description static java.util.List<ConfigurationProperty>
ConfigurationPropertyLoader. loadAll()
Loads allConfigurationProperty
instances by loading and executing all availableConfigurationPropertyLoader
services via Java SPI mechanism.default java.util.List<ConfigurationProperty>
ConfigurationPropertyReader. read(java.io.InputStream inputStream)
Reads a list ofConfigurationProperty
objects from the providedInputStream
.default java.util.List<ConfigurationProperty>
ConfigurationPropertyReader. read(java.io.Reader reader)
Reads a list ofConfigurationProperty
objects from the providedReader
.java.util.List<ConfigurationProperty>
ConfigurationPropertyReader. read(java.lang.String content)
Reads a list ofConfigurationProperty
objects from the provided content string. -
Uses of Immutable in io.microsphere.net
Fields in io.microsphere.net with annotations of type Immutable Modifier and Type Field Description static java.net.URL[]
URLUtils. EMPTY_URL_ARRAY
The empty array ofURL
Methods in io.microsphere.net with annotations of type Immutable Modifier and Type Method Description static java.util.Set<java.lang.String>
ExtendableProtocolURLStreamHandler. getHandlePackages()
static java.util.Map<java.lang.String,java.util.List<java.lang.String>>
URLUtils. resolveMatrixParameters(java.lang.String url)
Extracts and resolves matrix parameters from the provided URL string.static java.util.Map<java.lang.String,java.util.List<java.lang.String>>
URLUtils. resolveQueryParameters(java.lang.String url)
Resolve the query parametersMap
from specified URL.static java.util.List<java.lang.String>
URLUtils. resolveSubProtocols(java.lang.String url)
Resolves the list of sub-protocols from the specified URL string.static java.util.List<java.lang.String>
URLUtils. resolveSubProtocols(java.net.URL url)
Resolves the list of sub-protocols from the specifiedURL
. -
Uses of Immutable in io.microsphere.process
Methods in io.microsphere.process with annotations of type Immutable Modifier and Type Method Description java.util.Map<java.lang.Process,java.lang.String>
ProcessManager. unfinishedProcessesMap()
Unfinished Processes Map -
Uses of Immutable in io.microsphere.reflect
Classes in io.microsphere.reflect with annotations of type Immutable Modifier and Type Class Description class
ClassDefinition
A concrete implementation ofReflectiveDefinition
representing the definition of a Java class.class
ConstructorDefinition
The definition class forConstructor
class
ExecutableDefinition<E extends java.lang.reflect.Executable>
The definition class for Java ReflectionExecutable
, which serves as a base class for executable members like methods and constructors.class
FieldDefinition
The definition class ofField
class
MemberDefinition<M extends java.lang.reflect.Member>
The definition class for Java ReflectionMember
.class
MethodDefinition
The definition class of JavaMethod
, providing a structured way to define and resolve methods by their name, parameter types, and declaring class.class
MultipleType
Represents a composite type that encapsulates multipleType
instances.class
ReflectiveDefinition
The abstract definition class for Java Reflection.Fields in io.microsphere.reflect with annotations of type Immutable Modifier and Type Field Description static java.util.List<java.lang.reflect.Method>
MethodUtils. OBJECT_DECLARED_METHODS
The declared methods ofObject
static java.util.List<java.lang.reflect.Method>
MethodUtils. OBJECT_PUBLIC_METHODS
The public methods ofObject
Methods in io.microsphere.reflect with annotations of type Immutable Modifier and Type Method Description static java.util.Set<java.lang.reflect.Field>
FieldUtils. findAllDeclaredFields(java.lang.Class<?> declaredClass, java.util.function.Predicate<? super java.lang.reflect.Field>... fieldFilters)
Find and return all declared fields in the class hierarchy, optionally filtered by one or more predicates.static java.util.List<java.lang.reflect.Method>
MethodUtils. findAllDeclaredMethods(java.lang.Class<?> targetClass, java.util.function.Predicate<? super java.lang.reflect.Method>... methodsToFilter)
Retrieves all declared methods directly defined in the specified class, excluding inherited methods.static java.util.Set<java.lang.reflect.Field>
FieldUtils. findAllFields(java.lang.Class<?> declaredClass, java.util.function.Predicate<? super java.lang.reflect.Field>... fieldFilters)
Find and return all accessible fields in the class hierarchy, optionally filtered by one or more predicates.static java.util.List<java.lang.reflect.Type>
TypeUtils. findAllGenericInterfaces(java.lang.reflect.Type type, java.util.function.Predicate<? super java.lang.reflect.Type>... typeFilters)
Retrieves all generic interfaces implemented by the given type, including those inherited from its superclasses.static java.util.List<java.lang.reflect.Type>
TypeUtils. findAllGenericSuperclasses(java.lang.reflect.Type type, java.util.function.Predicate<? super java.lang.reflect.Type>... typeFilters)
Retrieves all generic superclasses of the given type, including its hierarchical superclasses.static java.util.List<java.lang.reflect.Method>
MethodUtils. findAllMethods(java.lang.Class<?> targetClass, java.util.function.Predicate<? super java.lang.reflect.Method>... methodsToFilter)
Get all publicmethods
of the target class, including the inherited methods.static java.util.List<java.lang.reflect.ParameterizedType>
TypeUtils. findAllParameterizedTypes(java.lang.reflect.Type type, java.util.function.Predicate<? super java.lang.reflect.ParameterizedType>... typeFilters)
Retrieves all parameterized types associated with the specified type, including those from its hierarchical superclasses and interfaces.static java.util.List<java.lang.reflect.Type>
TypeUtils. findAllTypes(java.lang.reflect.Type type, java.util.function.Predicate<? super java.lang.reflect.Type>... typeFilters)
Retrieves all types associated with the given type, including: - The type itself (if not a raw Object class) - All generic superclasses - All implemented interfaces (including those from superclasses)static java.util.List<java.lang.reflect.Constructor<?>>
ConstructorUtils. findConstructors(java.lang.Class<?> type, java.util.function.Predicate<? super java.lang.reflect.Constructor<?>>... constructorFilters)
Find public constructors from the specified class that match the given filter conditions.static java.util.List<java.lang.reflect.Constructor<?>>
ConstructorUtils. findDeclaredConstructors(java.lang.Class<?> type, java.util.function.Predicate<? super java.lang.reflect.Constructor<?>>... constructorFilters)
Find declared constructors from the specified class that match the given filter conditions.static java.util.List<java.lang.reflect.Method>
MethodUtils. findDeclaredMethods(java.lang.Class<?> targetClass, java.util.function.Predicate<? super java.lang.reflect.Method>... methodsToFilter)
Find all declaredmethods
of the target class, excluding the inherited methods.static java.util.List<java.lang.reflect.Type>
TypeUtils. findHierarchicalTypes(java.lang.reflect.Type type, java.util.function.Predicate<? super java.lang.reflect.Type>... typeFilters)
Retrieves all hierarchical generic types associated with the given type, including its superclasses and interfaces.static java.util.List<java.lang.reflect.Method>
MethodUtils. findMethods(java.lang.Class<?> targetClass, boolean includeInheritedTypes, boolean publicOnly, java.util.function.Predicate<? super java.lang.reflect.Method>... methodsToFilter)
Find allmethods
of the target class by the specified criteria.static java.util.List<java.lang.reflect.Method>
MethodUtils. findMethods(java.lang.Class<?> targetClass, java.util.function.Predicate<? super java.lang.reflect.Method>... methodsToFilter)
Find all public methods directly declared in the specified class, without including inherited methods.static java.util.List<java.lang.reflect.ParameterizedType>
TypeUtils. findParameterizedTypes(java.lang.reflect.Type type, java.util.function.Predicate<? super java.lang.reflect.ParameterizedType>... typeFilters)
Finds the immediate parameterized types associated with the specified type, including those from its direct superclass and implemented interfaces.protected static java.util.List<java.lang.reflect.Type>
TypeUtils. findTypes(java.lang.reflect.Type type, boolean includeSelf, boolean includeHierarchicalTypes, boolean includeGenericSuperclass, boolean includeGenericInterfaces, java.util.function.Predicate<? super java.lang.reflect.Type>... typeFilters)
static java.util.List<java.lang.reflect.Method>
MethodUtils. getAllDeclaredMethods(java.lang.Class<?> targetClass)
Get all declaredmethods
of the target class, including the inherited methods.static java.util.List<java.lang.reflect.Type>
TypeUtils. getAllGenericInterfaces(java.lang.reflect.Type type)
Retrieves all generic interfaces implemented by the given type, including those inherited from its superclasses.static java.util.List<java.lang.reflect.Type>
TypeUtils. getAllGenericSuperclasses(java.lang.reflect.Type type)
Retrieves all generic superclasses of the given type, including its hierarchical superclasses.static java.util.List<java.lang.reflect.Method>
MethodUtils. getAllMethods(java.lang.Class<?> targetClass)
Get all publicmethods
of the target class, including the inherited methods.static java.util.List<java.lang.reflect.ParameterizedType>
TypeUtils. getAllParameterizedTypes(java.lang.reflect.Type type)
Retrieves all parameterized types associated with the specified type, including those from its hierarchical superclasses and interfaces.static java.util.List<java.lang.reflect.Type>
TypeUtils. getAllTypes(java.lang.reflect.Type type)
Gets all generic types associated with the given type, including: - The type itself (if not a raw Object class) - All generic superclasses - All implemented interfaces (including those from superclasses)static java.util.Set<java.lang.String>
TypeUtils. getClassNames(java.lang.Iterable<? extends java.lang.reflect.Type> types)
Retrieves the fully qualified class names for all types in the provided iterable.static java.util.List<java.lang.reflect.Method>
MethodUtils. getDeclaredMethods(java.lang.Class<?> targetClass)
Get all declaredmethods
of the target class, excluding the inherited methods.static java.util.List<java.lang.reflect.Type>
TypeUtils. getHierarchicalTypes(java.lang.reflect.Type type)
Retrieves all hierarchical generic types associated with the given type, including its superclasses and interfaces.static java.util.List<java.lang.reflect.Method>
MethodUtils. getMethods(java.lang.Class<?> targetClass)
Get all publicmethods
of the target class, excluding the inherited methods.static java.util.List<java.lang.reflect.ParameterizedType>
TypeUtils. getParameterizedTypes(java.lang.reflect.Type type)
Retrieves the parameterized types directly associated with the specified type, including the type itself if it is aParameterizedType
, and any interfaces or superclasses that are parameterized.static java.util.Map<java.lang.String,java.lang.Object>
ReflectionUtils. readFieldsAsMap(java.lang.Object object)
Reads all non-static fields of the given object and returns them as a map.static java.util.List<java.lang.Class>
TypeUtils. resolveActualTypeArgumentClasses(java.lang.reflect.Type type, java.lang.reflect.Type baseType)
Resolves the actual type argument classes used in the specifiedtype
for a given base type (class or interface).static java.util.List<java.lang.reflect.Type>
TypeUtils. resolveActualTypeArguments(java.lang.reflect.Type type, java.lang.Class baseClass)
Resolves the actual type arguments used in the specifiedtype
for a given base class.static java.util.List<java.lang.reflect.Type>
TypeUtils. resolveActualTypeArguments(java.lang.reflect.Type type, java.lang.reflect.Type baseType)
Resolves the actual type arguments used in the specifiedtype
for a given base type (class or interface).static java.util.List<java.lang.Class<?>>
TypeUtils. resolveTypeArgumentClasses(java.lang.Class<?> targetClass)
Resolves and returns the concrete class representations of type arguments used in the given target class.static java.util.List<java.lang.reflect.Type>
TypeUtils. resolveTypeArguments(java.lang.Class<?> targetClass)
Resolves the actual type arguments from the generic superclass and interfaces for the given target class. -
Uses of Immutable in io.microsphere.util
Classes in io.microsphere.util with annotations of type Immutable Modifier and Type Class Description class
Version
Represents a version number composed of major, minor, and patch components.Fields in io.microsphere.util with annotations of type Immutable Modifier and Type Field Description static java.lang.String
ClassUtils. ARRAY_SUFFIX
Suffix for array class names: "[]"static java.lang.annotation.Annotation[]
AnnotationUtils. EMPTY_ANNOTATION_ARRAY
An empty immutableAnnotation
arraystatic java.lang.annotation.Annotation[]
ArrayUtils. EMPTY_ANNOTATION_ARRAY
An empty immutableAnnotation
arraystatic boolean[]
ArrayUtils. EMPTY_BOOLEAN_ARRAY
An empty immutableboolean
array.static java.lang.Boolean[]
ArrayUtils. EMPTY_BOOLEAN_OBJECT_ARRAY
An empty immutableBoolean
array.static byte[]
ArrayUtils. EMPTY_BYTE_ARRAY
An empty immutablebyte
array.static java.lang.Byte[]
ArrayUtils. EMPTY_BYTE_OBJECT_ARRAY
An empty immutableByte
array.static char[]
ArrayUtils. EMPTY_CHAR_ARRAY
An empty immutablechar
array.static java.lang.Character[]
ArrayUtils. EMPTY_CHARACTER_OBJECT_ARRAY
An empty immutableCharacter
array.static java.lang.Class<?>[]
ArrayUtils. EMPTY_CLASS_ARRAY
An empty immutableClass
array.static double[]
ArrayUtils. EMPTY_DOUBLE_ARRAY
An empty immutabledouble
array.static java.lang.Double[]
ArrayUtils. EMPTY_DOUBLE_OBJECT_ARRAY
An empty immutableDouble
array.static java.io.File[]
ArrayUtils. EMPTY_FILE_ARRAY
An empty immutableFile
array.static float[]
ArrayUtils. EMPTY_FLOAT_ARRAY
An empty immutablefloat
array.static java.lang.Float[]
ArrayUtils. EMPTY_FLOAT_OBJECT_ARRAY
An empty immutableFloat
array.static int[]
ArrayUtils. EMPTY_INT_ARRAY
An empty immutableint
array.static java.lang.Integer[]
ArrayUtils. EMPTY_INTEGER_OBJECT_ARRAY
An empty immutableInteger
array.static long[]
ArrayUtils. EMPTY_LONG_ARRAY
An empty immutablelong
array.static java.lang.Long[]
ArrayUtils. EMPTY_LONG_OBJECT_ARRAY
An empty immutableLong
array.static java.lang.Object[]
ArrayUtils. EMPTY_OBJECT_ARRAY
An empty immutableObject
array.static java.lang.reflect.Parameter[]
ArrayUtils. EMPTY_PARAMETER_ARRAY
An empty immutableParameter
array.static short[]
ArrayUtils. EMPTY_SHORT_ARRAY
An empty immutableshort
array.static java.lang.Short[]
ArrayUtils. EMPTY_SHORT_OBJECT_ARRAY
An empty immutableShort
array.static java.lang.String[]
ArrayUtils. EMPTY_STRING_ARRAY
An empty immutableString
array.static java.lang.String[]
StringUtils. EMPTY_STRING_ARRAY
An empty array of String.static java.lang.reflect.Type[]
ArrayUtils. EMPTY_TYPE_ARRAY
An empty immutableType
arraystatic java.net.URL[]
ArrayUtils. EMPTY_URL_ARRAY
An empty immutableURL
array.static java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>>
AnnotationUtils. NATIVE_ANNOTATION_TYPES
A list of annotation types that are considered native to the Java language.static java.util.Set<java.lang.Class<?>>
ClassUtils. PRIMITIVE_ARRAY_TYPES
static java.util.Set<java.lang.Class<?>>
ClassUtils. PRIMITIVE_TYPES
static java.util.Set<java.lang.Class<?>>
ClassUtils. SIMPLE_TYPES
Simple Types including:Void
Boolean
Character
Byte
Integer
Float
Double
String
BigDecimal
BigInteger
Date
Object
static java.util.Set<java.lang.Class<?>>
ClassUtils. WRAPPER_TYPES
Methods in io.microsphere.util with annotations of type Immutable Modifier and Type Method Description static java.util.List<java.lang.annotation.Annotation>
AnnotationUtils. filterAnnotations(java.lang.annotation.Annotation[] annotations, java.util.function.Predicate<? super java.lang.annotation.Annotation>... annotationsToFilter)
Filters the given array of annotations based on the provided predicates.static java.util.List<java.lang.annotation.Annotation>
AnnotationUtils. filterAnnotations(java.util.List<java.lang.annotation.Annotation> annotations, java.util.function.Predicate<? super java.lang.annotation.Annotation>... annotationsToFilter)
Filters the given list of annotations based on the provided predicates.static java.util.Set<java.lang.Thread>
ShutdownHookUtils. filterShutdownHookThreads(java.util.function.Predicate<? super java.lang.Thread> hookThreadFilter)
Filters and returns a set of registered JVM shutdown hook threads based on the provided predicate.static java.util.Set<java.lang.Thread>
ShutdownHookUtils. filterShutdownHookThreads(java.util.function.Predicate<? super java.lang.Thread> hookThreadFilter, boolean removed)
Filters and returns a set of registered JVM shutdown hook threads based on the provided predicate.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.annotation.Annotation>
AnnotationUtils. findAllDeclaredAnnotations(java.lang.Class<?> type, java.util.function.Predicate<? super java.lang.annotation.Annotation>... annotationsToFilter)
Retrieves all declared annotations from the specifiedClass
, including those from its hierarchy, but excluding meta-annotations (annotations on annotations).static java.util.List<java.lang.annotation.Annotation>
AnnotationUtils. findAllDeclaredAnnotations(java.lang.reflect.AnnotatedElement annotatedElement, java.util.function.Predicate<? super java.lang.annotation.Annotation>... annotationsToFilter)
Retrieves all declared annotations from the specifiedAnnotatedElement
, including those from its hierarchy, but excluding meta-annotations (annotations on annotations).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. 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.Map<java.lang.String,java.lang.Object>
AnnotationUtils. findAttributesMap(java.lang.annotation.Annotation annotation, java.lang.String... attributeNamesToFilter)
Retrieves a map of attributes from the specified annotation, filtering by attribute names.static java.util.Map<java.lang.String,java.lang.Object>
AnnotationUtils. findAttributesMap(java.lang.annotation.Annotation annotation, java.util.function.Predicate<? super java.lang.reflect.Method>... attributesToFilter)
Find the attributes map from the specified annotation by theattribute method
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.util.List<java.lang.annotation.Annotation>
AnnotationUtils. findDeclaredAnnotations(java.lang.reflect.AnnotatedElement annotatedElement, java.util.function.Predicate<? super java.lang.annotation.Annotation>... annotationsToFilter)
Retrieves the annotations that are directly declared on the specifiedAnnotatedElement
.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.java.util.List<T>
TypeFinder. findTypes(java.util.function.Predicate<? super T>... typeFilters)
static java.util.List<java.lang.annotation.Annotation>
AnnotationUtils. getAllDeclaredAnnotations(java.lang.reflect.AnnotatedElement annotatedElement)
Retrieves all declared annotations from the specifiedAnnotatedElement
, including those from its hierarchy, but excluding meta-annotations (annotations on annotations).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.util.Map<java.lang.String,java.lang.Object>
AnnotationUtils. getAttributesMap(java.lang.annotation.Annotation annotation)
Retrieves a map of attribute names to their corresponding values from the specified annotation.static java.util.Set<java.lang.String>
ClassPathUtils. getBootstrapClassPaths()
Returns the set of bootstrap class paths.static java.util.Set<java.lang.String>
ClassPathUtils. getClassPaths()
Returns the set of application class paths.static java.util.List<java.lang.annotation.Annotation>
AnnotationUtils. getDeclaredAnnotations(java.lang.reflect.AnnotatedElement annotatedElement)
Retrieves the annotations that are directly declared on the specifiedAnnotatedElement
.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.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.util.Queue<java.lang.Runnable>
ShutdownHookUtils. getShutdownHookCallbacks()
Retrieves an unmodifiableQueue
containing all registered shutdown hook callbacks.static java.util.Set<java.lang.Thread>
ShutdownHookUtils. getShutdownHookThreads()
Retrieves an unmodifiable set of all registered JVM shutdown hook threads.java.util.List<T>
TypeFinder. getTypes()
static <S> java.util.List<S>
ServiceLoaderUtils. loadServicesList(java.lang.Class<S> serviceType)
Loads all implementation instances of the specifiedServiceLoader
service type using the context class loader.static <S> java.util.List<S>
ServiceLoaderUtils. loadServicesList(java.lang.Class<S> serviceType, boolean cached)
Loads all implementation instances of the specifiedServiceLoader
service type using the context class loader, 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. -
Uses of Immutable in io.microsphere.util.jar
Methods in io.microsphere.util.jar with annotations of type Immutable Modifier and Type Method Description protected static java.util.List<java.util.jar.JarEntry>
JarUtils. doFilter(java.lang.Iterable<java.util.jar.JarEntry> jarEntries, JarEntryFilter jarEntryFilter)
static java.util.List<java.util.jar.JarEntry>
JarUtils. filter(java.util.jar.JarFile jarFile, JarEntryFilter jarEntryFilter)
Filters the entries of a JAR file based on the providedJarEntryFilter
.
-