Uses of Class
io.microsphere.annotation.Nonnull
-
-
Uses of Nonnull in io.microsphere.beans
Methods in io.microsphere.beans with annotations of type Nonnull Modifier and Type Method Description java.lang.Class<?>
BeanProperty. getBeanClass()
java.beans.PropertyDescriptor
BeanProperty. getDescriptor()
java.lang.String
BeanProperty. getName()
Method parameters in io.microsphere.beans with annotations of type Nonnull Modifier and Type Method Description static BeanProperty
BeanProperty. of(java.lang.Object bean, java.lang.String propertyName)
Create aBeanProperty
instancestatic BeanProperty
BeanProperty. of(java.lang.Object bean, java.lang.String propertyName)
Create aBeanProperty
instanceConstructor parameters in io.microsphere.beans with annotations of type Nonnull Constructor Description BeanProperty(java.lang.String name, java.lang.Class<?> beanClass, java.beans.PropertyDescriptor descriptor)
BeanProperty(java.lang.String name, java.lang.Class<?> beanClass, java.beans.PropertyDescriptor descriptor)
BeanProperty(java.lang.String name, java.lang.Class<?> beanClass, java.beans.PropertyDescriptor descriptor)
-
Uses of Nonnull in io.microsphere.classloading
Methods in io.microsphere.classloading with annotations of type Nonnull Modifier and Type Method Description java.lang.String
Artifact. getArtifactId()
Get the artifact Idjava.lang.String
MavenArtifact. getGroupId()
Get the group id of Maven Artifactjava.net.URL[]
AbstractURLClassPathHandle. getURLs(java.lang.ClassLoader classLoader)
default java.net.URL[]
URLClassPathHandle. getURLs(java.lang.ClassLoader classLoader)
Get the Class-Path URLs from the specifiedClassLoader
Method parameters in io.microsphere.classloading with annotations of type Nonnull Modifier and Type Method Description static Artifact
Artifact. create(java.lang.String artifactId)
static Artifact
Artifact. create(java.lang.String artifactId, java.lang.String version)
static Artifact
Artifact. create(java.lang.String artifactId, java.lang.String version, java.net.URL location)
static MavenArtifact
MavenArtifact. create(java.lang.String groupId, java.lang.String artifactId)
static MavenArtifact
MavenArtifact. create(java.lang.String groupId, java.lang.String artifactId)
static MavenArtifact
MavenArtifact. create(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
static MavenArtifact
MavenArtifact. create(java.lang.String groupId, java.lang.String artifactId, java.lang.String version)
static MavenArtifact
MavenArtifact. create(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.net.URL location)
static MavenArtifact
MavenArtifact. create(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.net.URL location)
Constructor parameters in io.microsphere.classloading with annotations of type Nonnull Constructor Description Artifact(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)
MavenArtifact(java.lang.String groupId, java.lang.String artifactId, java.lang.String version, java.net.URL location)
-
Uses of Nonnull in io.microsphere.collection
Methods in io.microsphere.collection with annotations of type Nonnull Modifier and Type Method Description 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 <E> java.util.Queue<E>
QueueUtils. emptyQueue()
Returns an empty immutable queue instance.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 <E> java.util.ArrayList<E>
ListUtils. newArrayList()
Creates a new emptyArrayList
instance.static <E> java.util.ArrayList<E>
ListUtils. newArrayList(int size)
Creates a newArrayList
instance with the specified initial capacity.static <E> java.util.ArrayList<E>
ListUtils. newArrayList(java.lang.Iterable<E> values)
Creates a newArrayList
instance containing all elements from the specifiedIterable
.static <E> java.util.ArrayList<E>
ListUtils. newArrayList(java.util.Enumeration<E> values)
Creates a newLinkedList
instance from the specifiedEnumeration
.static <E> java.util.ArrayList<E>
ListUtils. newArrayList(java.util.Iterator<E> iterator)
Creates a newArrayList
instance containing all elements from the specifiedIterator
.static <K,V>
java.util.concurrent.ConcurrentHashMap<K,V>MapUtils. newConcurrentHashMap()
Creates a new emptyConcurrentHashMap
with the default initial capacity (16) and the default load factor (0.75), using the default concurrency level.static <K,V>
java.util.concurrent.ConcurrentHashMap<K,V>MapUtils. newConcurrentHashMap(int initialCapacity)
Creates a newConcurrentHashMap
with the specified initial capacity and the default load factor (0.75), using the default concurrency level.static <K,V>
java.util.concurrent.ConcurrentHashMap<K,V>MapUtils. newConcurrentHashMap(int initialCapacity, float loadFactor)
Creates a newConcurrentHashMap
with the specified initial capacity and load factor.static <K,V>
java.util.concurrent.ConcurrentHashMap<K,V>MapUtils. newConcurrentHashMap(java.util.Map<? extends K,? extends V> map)
Creates a newConcurrentHashMap
with the same mappings as the specified map.static <K,V>
java.util.Map<K,V>MapUtils. newFixedHashMap(int size)
Creates a new emptyHashMap
with the specified initial capacity and a fixed load factor.static <K,V>
java.util.Map<K,V>MapUtils. newFixedLinkedHashMap(int size)
Creates a new emptyLinkedHashMap
with the specified initial capacity and a fixed load factor.static <K,V>
java.util.HashMap<K,V>MapUtils. newHashMap()
Creates a new emptyHashMap
with the default initial capacity (16) and the default load factor (0.75).static <K,V>
java.util.HashMap<K,V>MapUtils. newHashMap(int initialCapacity)
Creates a newHashMap
with the specified initial capacity and the default load factor (0.75).static <K,V>
java.util.HashMap<K,V>MapUtils. newHashMap(int initialCapacity, float loadFactor)
Creates a newHashMap
with the specified initial capacity and load factor.static <K,V>
java.util.HashMap<K,V>MapUtils. newHashMap(java.util.Map<? extends K,? extends V> map)
Creates a newHashMap
with the same mappings as the specified map.static <E> java.util.Set<E>
SetUtils. newHashSet()
Creates a new, emptyHashSet
with the default initial capacity and load factor.static <E> java.util.Set<E>
SetUtils. newHashSet(int initialCapacity)
Creates a new, emptyHashSet
with the specified initial capacity and default load factor.static <E> java.util.Set<E>
SetUtils. newHashSet(E... elements)
Creates a newHashSet
containing all elements from the provided varargs array.static <E> java.util.Set<E>
SetUtils. newHashSet(java.lang.Iterable<E> elements)
Creates a newHashSet
containing all elements from the providedIterable
.static <E> java.util.Set<E>
SetUtils. newHashSet(java.util.Collection<E> elements)
Creates a newHashSet
containing all elements from the providedCollection
.static <K,V>
java.util.LinkedHashMap<K,V>MapUtils. newLinkedHashMap()
Creates a new emptyLinkedHashMap
with the default initial capacity (16) and the default load factor (0.75).static <K,V>
java.util.LinkedHashMap<K,V>MapUtils. newLinkedHashMap(int initialCapacity)
Creates a newLinkedHashMap
with the specified initial capacity and the default load factor (0.75).static <K,V>
java.util.LinkedHashMap<K,V>MapUtils. newLinkedHashMap(int initialCapacity, float loadFactor)
Creates a newLinkedHashMap
with the specified initial capacity and load factor.static <K,V>
java.util.LinkedHashMap<K,V>MapUtils. newLinkedHashMap(int initialCapacity, float loadFactor, boolean accessOrder)
Creates a newLinkedHashMap
with the specified initial capacity, load factor, and ordering mode.static <K,V>
java.util.LinkedHashMap<K,V>MapUtils. newLinkedHashMap(java.util.Map<? extends K,? extends V> map)
Creates a newLinkedHashMap
with the same mappings as the specified map.static <E> java.util.Set<E>
SetUtils. newLinkedHashSet()
Creates a new, emptyLinkedHashSet
with the default initial capacity and load factor.static <E> java.util.Set<E>
SetUtils. newLinkedHashSet(int initialCapacity)
Creates a new, emptyLinkedHashSet
with the specified initial capacity and default load factor.static <E> java.util.Set<E>
SetUtils. newLinkedHashSet(int initialCapacity, float loadFactor)
Creates a new, emptyLinkedHashSet
with the specified initial capacity and load factor.static <E> java.util.Set<E>
SetUtils. newLinkedHashSet(E... elements)
Creates a newLinkedHashSet
containing all elements from the provided varargs array.static <E> java.util.Set<E>
SetUtils. newLinkedHashSet(java.util.Collection<E> elements)
Creates a newLinkedHashSet
containing all elements from the providedCollection
.static <E> java.util.Set<E>
SetUtils. newLinkedHashSet(java.util.Iterator<E> elements)
Creates a newLinkedHashSet
containing all elements from the providedIterator
.static <E> java.util.LinkedList<E>
ListUtils. newLinkedList()
Creates a new emptyLinkedList
instance.static <E> java.util.LinkedList<E>
ListUtils. newLinkedList(java.util.Enumeration<E> values)
Creates a newLinkedList
instance from the specifiedEnumeration
.static <K,V>
java.util.TreeMap<K,V>MapUtils. newTreeMap()
Creates a new emptyTreeMap
using natural ordering for the keys.static <K,V>
java.util.TreeMap<K,V>MapUtils. newTreeMap(java.util.Comparator<? super K> comparator)
Creates a new emptyTreeMap
with the specified comparator to order the keys.static <K,V>
java.util.TreeMap<K,V>MapUtils. newTreeMap(java.util.Map<? extends K,? extends V> map)
Creates a newTreeMap
with the same mappings as the specified map.static <K,V>
java.util.TreeMap<K,V>MapUtils. newTreeMap(java.util.SortedMap<K,? extends V> map)
Creates a newTreeMap
with the same mappings as the specified sorted map.static <E> java.util.Enumeration<E>
EnumerationUtils. of(E... elements)
Creates anEnumeration
from the provided elements.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.Set<E>
SetUtils. of(E... elements)
Creates an unmodifiableSet
from the given varargs array of elements.static <K,V>
java.util.Map.Entry<K,V>MapUtils. ofEntry(K key, V value)
Creates an immutableMap.Entry
with the specified key and value.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(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.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, 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 <K,V>
java.util.Map<K,V>MapUtils. shallowCloneMap(java.util.Map<K,V> source)
Performs a shallow clone of the provided map, creating a new map instance with the same key-value mappings.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)
static <E> java.util.Iterator<E>
CollectionUtils. singletonIterator(E element)
Creates a singleton read-onlyIterator
that contains 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.lang.Iterable<E>
CollectionUtils. toIterable(java.util.Collection<E> collection)
Converts a nullableCollection
into anIterable
.static <E> java.lang.Iterable<E>
CollectionUtils. toIterable(java.util.Enumeration<E> enumeration)
Converts a nullableEnumeration
into anIterable
.static <E> java.lang.Iterable<E>
CollectionUtils. toIterable(java.util.Iterator<E> iterator)
Converts a nullableIterator
into anIterable
.static <E> java.util.Iterator<E>
CollectionUtils. toIterator(java.util.Enumeration<E> enumeration)
Converts a nullableEnumeration
into anIterator
.static <E> java.util.Iterator<E>
CollectionUtils. unmodifiableIterator(java.util.Iterator<E> iterator)
Returns an unmodifiable (read-only) view of the given iterator.static <E> java.util.Queue<E>
QueueUtils. unmodifiableQueue(java.util.Queue<E> queue)
Returns an unmodifiable view of the given queue.Method parameters in io.microsphere.collection with annotations of type Nonnull Modifier and Type Method Description static <K,V>
java.util.Map<K,V>MapUtils. shallowCloneMap(java.util.Map<K,V> source)
Performs a shallow clone of the provided map, creating a new map instance with the same key-value mappings. -
Uses of Nonnull in io.microsphere.convert
Methods in io.microsphere.convert with annotations of type Nonnull Modifier and Type Method Description java.nio.charset.Charset
StringToInputStreamConverter. getCharset()
Get theCharset
Method parameters in io.microsphere.convert with annotations of type Nonnull Modifier and Type Method Description protected abstract T
AbstractConverter. doConvert(S source)
Converts the non-null source-typed value to the target-typed value. -
Uses of Nonnull in io.microsphere.filter
Methods in io.microsphere.filter with annotations of type Nonnull 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 Nonnull in io.microsphere.io.scanner
Methods in io.microsphere.io.scanner with annotations of type Nonnull Modifier and Type Method Description java.util.Set<R>
Scanner. scan(S source)
Scan source to calculate result setjava.util.Set<R>
Scanner. scan(S source, Filter<R> filter)
Scan source to calculate result set withFilter
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)
-
Uses of Nonnull in io.microsphere.lang
Methods in io.microsphere.lang with annotations of type Nonnull 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 valueDeprecation.Level
Deprecation. getLevel()
-
Uses of Nonnull in io.microsphere.lang.function
Methods in io.microsphere.lang.function with annotations of type Nonnull 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<? super T>
Predicates. and(java.util.function.Predicate<? super T>... predicates)
Returns a composed predicate that represents a short-circuiting logical AND of the given predicates.static <T> java.util.function.Predicate<T>[]
Predicates. emptyArray()
Returns an empty array ofPredicate
instances.static <T> java.util.function.Predicate<? super T>
Predicates. or(java.util.function.Predicate<? super T>... predicates)
Returns a composed predicate that represents a short-circuiting logical OR of the given predicates. -
Uses of Nonnull in io.microsphere.logging
Methods in io.microsphere.logging with annotations of type Nonnull Modifier and Type Method Description static Logger
LoggerFactory. getLogger(java.lang.Class<?> type)
Get an instance ofLogger
by typestatic Logger
LoggerFactory. getLogger(java.lang.String name)
Get an instance ofLogger
by name -
Uses of Nonnull in io.microsphere.management
Methods in io.microsphere.management with annotations of type Nonnull Modifier and Type Method Description javax.management.MBeanAttributeInfo
MBeanAttribute. getAttributeInfo()
static java.lang.management.ClassLoadingMXBean
JmxUtils. getClassLoadingMXBean()
Returns the managed bean for the class loading system of the Java virtual machine.static java.util.Optional<java.lang.management.CompilationMXBean>
JmxUtils. getCompilationMXBean()
Returns the managed bean for the compilation system of the Java virtual machine.javax.management.MBeanInfo
MBeanAttribute. getDeclaringMBeanInfo()
static java.util.List<java.lang.management.GarbageCollectorMXBean>
JmxUtils. getGarbageCollectorMXBeans()
Returns a list ofGarbageCollectorMXBean
objects in the Java virtual machine.static MBeanAttribute[]
JmxUtils. getMBeanAttributes(javax.management.MBeanServer mBeanServer, javax.management.ObjectName objectName)
Retrieves an array ofMBeanAttribute
objects representing the attributes of the specified MBean.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.lang.management.MemoryMXBean
JmxUtils. getMemoryMXBean()
Returns the managed bean for the memory system of 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.java.lang.String
MBeanAttribute. getName()
static java.lang.management.OperatingSystemMXBean
JmxUtils. getOperatingSystemMXBean()
Returns the managed bean for the operating system on which the Java virtual machine is running.static java.lang.management.RuntimeMXBean
JmxUtils. getRuntimeMXBean()
Returns the managed bean for the runtime system of the Java virtual machine.static java.lang.management.ThreadMXBean
JmxUtils. getThreadMXBean()
Returns the managed bean for the thread system of the Java virtual machine.java.lang.String
MBeanAttribute. getType()
Constructor parameters in io.microsphere.management with annotations of type Nonnull Constructor Description MBeanAttribute(javax.management.MBeanInfo declaringMBeanInfo, javax.management.MBeanAttributeInfo attributeInfo, java.lang.Object value)
MBeanAttribute(javax.management.MBeanInfo declaringMBeanInfo, javax.management.MBeanAttributeInfo attributeInfo, java.lang.Object value)
-
Uses of Nonnull in io.microsphere.net
Methods in io.microsphere.net with annotations of type Nonnull Modifier and Type Method Description static java.lang.String
URLUtils. buildMatrixString(java.lang.String name, java.lang.String... values)
Builds a matrix parameter string in the format ";name=value1;name=value2..." from the provided values.static java.lang.String
URLUtils. buildURI(java.lang.String... paths)
Builds a normalized URI path by concatenating the provided path segments with slashes.static java.lang.String
URLUtils. decode(java.lang.String value)
Decodes aapplication/x-www-form-urlencoded
string using the default encoding.static java.lang.String
URLUtils. decode(java.lang.String value, java.lang.String encoding)
Decodes aapplication/x-www-form-urlencoded
string using a specific encoding scheme.static java.lang.String
URLUtils. encode(java.lang.String value)
Encodes the provided string using URL encoding with the default encoding scheme.static java.lang.String
URLUtils. encode(java.lang.String value, java.lang.String encoding)
Translates a string intoapplication/x-www-form-urlencoded
format using a specific encoding scheme.static java.net.URL
URLUtils. ofURL(java.lang.String url)
Converts the provided URL string into aURL
object.static java.lang.String
URLUtils. resolveBasePath(java.net.URL url)
Resolves the base path from the specified URL.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.lang.String
URLUtils. resolvePath(java.net.URL url)
Resolves the path component from the specified URL, excluding any matrix parameters.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
.static java.lang.String
URLUtils. toExternalForm(java.net.URL url)
Converts the providedURL
to its external form as a string, including all components such as protocol, authority, path, matrix parameters, query, and fragment. -
Uses of Nonnull in io.microsphere.process
Methods in io.microsphere.process with annotations of type Nonnull Modifier and Type Method Description java.util.Map<java.lang.Process,java.lang.String>
ProcessManager. unfinishedProcessesMap()
Unfinished Processes Map -
Uses of Nonnull in io.microsphere.reflect
Fields in io.microsphere.reflect with annotations of type Nonnull Modifier and Type Field Description protected java.lang.String
ReflectiveDefinition. className
protected java.lang.String
MemberDefinition. name
protected java.lang.String[]
ExecutableDefinition. parameterClassNames
protected Version
ReflectiveDefinition. since
Methods in io.microsphere.reflect with annotations of type Nonnull Modifier and Type Method Description static java.util.function.Predicate<? super java.lang.reflect.Method>
MethodUtils. excludedDeclaredClass(java.lang.Class<?> declaredClass)
Creates aPredicate
that excludes methods declared by the specified class.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.static JavaType
JavaType. from(java.lang.Class<?> targetClass)
Creates a JavaType instance representing the specified class.static JavaType
JavaType. from(java.lang.reflect.Type type)
Creates a JavaType instance from the specified Type object.protected static JavaType[]
JavaType. from(java.lang.reflect.Type[] types)
protected static JavaType[]
JavaType. from(java.lang.reflect.Type[] types, JavaType source)
protected static JavaType
JavaType. from(java.lang.reflect.Type type, JavaType source)
protected static JavaType
JavaType. from(java.lang.reflect.Type type, JavaType.Kind kind)
protected static JavaType
JavaType. from(java.lang.reflect.Type type, JavaType.Kind kind, JavaType source)
static JavaType
JavaType. fromField(java.lang.reflect.Field field)
Creates a JavaType instance from the givenField
.static JavaType
JavaType. fromMethodParameter(java.lang.reflect.Method method, int parameterIndex)
Creates a JavaType instance representing the parameter type of a method at the specified index.static JavaType[]
JavaType. fromMethodParameters(java.lang.Class<?> declaredClass, java.lang.String methodName, java.lang.Class<?>... parameterTypes)
Creates an array of JavaType instances representing the parameter types of a method with the specified name and parameters.static JavaType[]
JavaType. fromMethodParameters(java.lang.reflect.Method method)
Creates an array of JavaType instances representing the parameter types of the specified method.static JavaType
JavaType. fromMethodReturnType(java.lang.Class<?> declaredClass, java.lang.String methodName, java.lang.Class<?>... parameterTypes)
Creates a JavaType instance representing the return type of a method with the specified name and parameter types.static JavaType
JavaType. fromMethodReturnType(java.lang.reflect.Method method)
Creates a JavaType instance representing the return type of the specified method.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.lang.Class<?>
ReflectionUtils. getCallerClass()
Gets theClass
of the method caller.static java.lang.String
ReflectionUtils. getCallerClassName()
Retrieves the fully qualified name of the class that called the method invoking this method.java.lang.String
ReflectiveDefinition. getClassName()
Get the name of classstatic 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.java.lang.String
MemberDefinition. getDeclaredClassName()
Get the declared class namestatic java.util.List<java.lang.reflect.Method>
MethodUtils. getDeclaredMethods(java.lang.Class<?> targetClass)
Get all declaredmethods
of the target class, excluding the inherited methods.java.lang.String
FieldDefinition. getFieldName()
JavaType
JavaType. getGenericType(int genericTypeIndex)
Retrieves the generic type argument at the specified index from this JavaType.JavaType[]
JavaType. getGenericTypes()
Retrieves the generic type arguments associated with this JavaType.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.JavaType
JavaType. getInterface(int interfaceIndex)
Retrieves the interface at the specified index from the interfaces directly implemented by this type.JavaType[]
JavaType. getInterfaces()
Retrieves the interfaces directly implemented by the class or type represented by this JavaType.JavaType.Kind
JavaType. getKind()
Retrieves theJavaType.Kind
of this JavaType, indicating what sort of type it represents.java.lang.String
MethodDefinition. getMethodName()
The method namestatic java.util.List<java.lang.reflect.Method>
MethodUtils. getMethods(java.lang.Class<?> targetClass)
Get all publicmethods
of the target class, excluding the inherited methods.java.lang.String
MemberDefinition. getName()
Get the member namejava.lang.String[]
ExecutableDefinition. getParameterClassNames()
Get the parameter class namesstatic 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.java.lang.Class<?>[]
ExecutableDefinition. getParameterTypes()
the class names of parametersstatic java.lang.String
MethodUtils. getSignature(java.lang.reflect.Method method)
Generates a string representation of the method signature.Version
ReflectiveDefinition. getSince()
Get the 'since' versionjava.lang.reflect.Type
JavaType. getType()
Retrieves the underlyingType
object that this JavaType represents.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 <T> T
ConstructorUtils. newInstance(java.lang.reflect.Constructor<T> constructor, java.lang.Object... args)
Creates a new instance by invoking the specifiedConstructor
with the provided arguments.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.lang.reflect.Type
TypeUtils. resolveActualTypeArgument(java.lang.reflect.Type type, java.lang.reflect.Type baseType, int index)
Resolves the actual type argument at the specified index from the given type for a base type.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.reflect.Type baseType)
Resolves the actual type arguments used in the specifiedtype
for a given base type (class or interface).protected JavaType[]
JavaType. resolveGenericTypes()
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.static <T> java.util.List<T>
ReflectionUtils. toList(java.lang.Object array)
Converts an array object into aList
.Constructor parameters in io.microsphere.reflect with annotations of type Nonnull Constructor Description ClassDefinition(Version since, Deprecation deprecation, java.lang.String className)
ClassDefinition(Version since, Deprecation deprecation, java.lang.String className)
ClassDefinition(Version since, java.lang.String className)
ClassDefinition(Version since, java.lang.String className)
ClassDefinition(java.lang.String since, Deprecation deprecation, java.lang.String className)
ClassDefinition(java.lang.String since, Deprecation deprecation, java.lang.String className)
ClassDefinition(java.lang.String since, java.lang.String className)
ClassDefinition(java.lang.String since, java.lang.String className)
FieldDefinition(Version since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String fieldName)
FieldDefinition(Version since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String fieldName)
FieldDefinition(Version since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String fieldName)
FieldDefinition(Version since, java.lang.String declaredClassName, java.lang.String fieldName)
FieldDefinition(Version since, java.lang.String declaredClassName, java.lang.String fieldName)
FieldDefinition(Version since, java.lang.String declaredClassName, java.lang.String fieldName)
FieldDefinition(java.lang.String 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)
FieldDefinition(java.lang.String since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String fieldName)
FieldDefinition(java.lang.String since, java.lang.String declaredClassName, java.lang.String fieldName)
FieldDefinition(java.lang.String since, java.lang.String declaredClassName, java.lang.String fieldName)
FieldDefinition(java.lang.String since, java.lang.String declaredClassName, java.lang.String fieldName)
MemberDefinition(Version since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String name)
MemberDefinition(Version since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String name)
MemberDefinition(Version since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String name)
MemberDefinition(Version since, java.lang.String declaredClassName, java.lang.String name)
MemberDefinition(Version since, java.lang.String declaredClassName, java.lang.String name)
MemberDefinition(Version since, java.lang.String declaredClassName, java.lang.String name)
MemberDefinition(java.lang.String 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)
MemberDefinition(java.lang.String since, Deprecation deprecation, java.lang.String declaredClassName, java.lang.String name)
MemberDefinition(java.lang.String since, java.lang.String declaredClassName, java.lang.String name)
MemberDefinition(java.lang.String since, java.lang.String declaredClassName, java.lang.String name)
MemberDefinition(java.lang.String since, java.lang.String declaredClassName, java.lang.String name)
ReflectiveDefinition(Version since, Deprecation deprecation, java.lang.String className)
ReflectiveDefinition(Version since, Deprecation deprecation, java.lang.String className)
ReflectiveDefinition(Version since, java.lang.String className)
ReflectiveDefinition(Version since, java.lang.String className)
ReflectiveDefinition(java.lang.String since, Deprecation deprecation, java.lang.String className)
ReflectiveDefinition(java.lang.String since, Deprecation deprecation, java.lang.String className)
ReflectiveDefinition(java.lang.String since, java.lang.String className)
ReflectiveDefinition(java.lang.String since, java.lang.String className)
-
Uses of Nonnull in io.microsphere.util
Fields in io.microsphere.util with annotations of type Nonnull Modifier and Type Field Description 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.Methods in io.microsphere.util with annotations of type Nonnull Modifier and Type Method Description static <T extends java.lang.Throwable>
TExceptionUtils. create(java.lang.Class<T> throwableClass)
Creates a new instance of the specified Throwable class using its default constructor.static <T extends java.lang.Throwable>
TExceptionUtils. create(java.lang.Class<T> throwableClass, java.lang.Object... args)
Creates a new instance of the specified Throwable class using constructor arguments.static <T extends java.lang.Throwable>
TExceptionUtils. create(java.lang.Class<T> throwableClass, java.lang.String message)
Creates a new instance of the specified Throwable class with the provided detail message.static <T extends java.lang.Throwable>
TExceptionUtils. create(java.lang.Class<T> throwableClass, java.lang.String message, java.lang.Throwable cause)
Creates a new instance of the specified Throwable class with the provided detail message and cause.static <T extends java.lang.Throwable>
TExceptionUtils. create(java.lang.Class<T> throwableClass, java.lang.Throwable cause)
Creates a new instance of the specified Throwable class with the provided cause.static <T extends java.lang.Throwable>
TExceptionUtils. create(java.lang.Class<T> throwableClass, java.lang.Throwable cause, java.lang.String messagePattern, java.lang.Object... args)
Creates a new instance of the specified Throwable class with a formatted detail message and cause.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, boolean removed)
Filters and returns a set of registered JVM shutdown hook threads based on the provided predicate.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.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.lang.String classPath, boolean recursive)
Find all class names in class pathstatic 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.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.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.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.ResourceBundle
PropertyResourceBundleUtils. getBundle(java.lang.String baseName)
Gets a resource bundle using the specified base name and the default encoding.static java.util.ResourceBundle
PropertyResourceBundleUtils. getBundle(java.lang.String baseName, java.lang.String encoding)
Retrieves a resource bundle using the specified base name and character encoding.static java.util.ResourceBundle
PropertyResourceBundleUtils. getBundle(java.lang.String baseName, java.util.Locale locale, java.lang.ClassLoader classLoader, java.lang.String encoding)
Retrieves a resource bundle using the specified base name, locale, class loader, and character encoding.static java.util.ResourceBundle
PropertyResourceBundleUtils. getBundle(java.lang.String baseName, java.util.Locale locale, java.lang.String encoding)
Retrieves a resource bundle using the specified base name, locale, and character encoding.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.static java.lang.String
ExceptionUtils. getStackTrace(java.lang.Throwable throwable)
Gets the stack trace from a Throwable as a String.static Version
Version. getVersion(java.lang.Class<?> targetClass)
Class that exposes the version.static <S> S
ServiceLoaderUtils. loadFirstService(java.lang.Class<S> serviceType)
Loads the first instance of the specifiedServiceLoader
service type using the context class loader.static <S> S
ServiceLoaderUtils. loadFirstService(java.lang.Class<S> serviceType, boolean cached)
Loads the first instance of the specifiedServiceLoader
service type using the context class loader, with an option to enable or disable caching of the loaded services.static <S> S
ServiceLoaderUtils. loadFirstService(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader)
Loads the first instance of the specifiedServiceLoader
service type using the providedClassLoader
.static <S> S
ServiceLoaderUtils. loadFirstService(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader, boolean cached)
Loads the first instance of the specifiedServiceLoader
service type using the providedClassLoader
, with an option to enable or disable caching of the loaded services.static <S> S
ServiceLoaderUtils. loadLastService(java.lang.Class<S> serviceType)
Loads the last instance of the specifiedServiceLoader
service type using the context class loader.static <S> S
ServiceLoaderUtils. loadLastService(java.lang.Class<S> serviceType, boolean cached)
Loads the last instance of the specifiedServiceLoader
service type using the context class loader, with an option to enable or disable caching of the loaded services.static <S> S
ServiceLoaderUtils. loadLastService(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader)
Loads the last instance of the specifiedServiceLoader
service type using the providedClassLoader
.static <S> S
ServiceLoaderUtils. loadLastService(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader, boolean cached)
Loads the last instance of the specifiedServiceLoader
service type using the providedClassLoader
, with an option to enable or disable caching of the loaded services.static <S> S[]
ServiceLoaderUtils. loadServices(java.lang.Class<S> serviceType)
Loads all implementation instances of the specifiedServiceLoader
service type using the context class loader.static <S> S[]
ServiceLoaderUtils. loadServices(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> S[]
ServiceLoaderUtils. loadServices(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader)
Loads all implementation instances of the specifiedServiceLoader
service type using the providedClassLoader
.static <S> S[]
ServiceLoaderUtils. loadServices(java.lang.Class<S> serviceType, java.lang.ClassLoader classLoader, boolean cached)
Loads all implementation instances of the specifiedServiceLoader
service type using the providedClassLoader
, with an option to enable or disable caching of the loaded services.static <S> java.util.List<S>
ServiceLoaderUtils. loadServicesList(java.lang.Class<S> serviceType)
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.static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.lang.Iterable<java.net.URL> urls)
Creates a new instance ofURLClassLoader
using the URLs provided in anIterable
.static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.net.URL[] urls)
Create a new instance ofURLClassLoader
static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.net.URL[] urls, boolean initializedLoaders)
Create a new instance ofURLClassLoader
static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent)
Creates a new instance ofURLClassLoader
using the provided array of URLs and an optional parent ClassLoader.static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent, boolean initializedLoaders)
Create a new instance ofURLClassLoader
static java.net.URLClassLoader
ClassLoaderUtils. resolveURLClassLoader(java.lang.ClassLoader classLoader)
Resolves or creates aURLClassLoader
instance from the specified ClassLoader.static <T extends java.lang.Throwable,TT extends java.lang.Throwable>
TTExceptionUtils. throwTarget(T source, java.lang.Class<TT> thrownType)
Throws the given source exception wrapped into the specified target exception type.static <T extends java.lang.Throwable,TT extends java.lang.Throwable>
TTExceptionUtils. wrap(T source, java.lang.Class<TT> thrownType)
Wraps the given source exception into a new instance of the specified type.Method parameters in io.microsphere.util with annotations of type Nonnull Modifier and Type Method Description 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.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.lang.Iterable<java.net.URL> urls)
Creates a new instance ofURLClassLoader
using the URLs provided in anIterable
.static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.lang.Iterable<java.net.URL> urls, java.lang.ClassLoader classLoader)
Creates a new instance ofURLClassLoader
using the URLs provided in anIterable
.static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.net.URL[] urls)
Create a new instance ofURLClassLoader
static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.net.URL[] urls, boolean initializedLoaders)
Create a new instance ofURLClassLoader
static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent)
Creates a new instance ofURLClassLoader
using the provided array of URLs and an optional parent ClassLoader.static java.net.URLClassLoader
ClassLoaderUtils. newURLClassLoader(java.net.URL[] urls, java.lang.ClassLoader parent, boolean initializedLoaders)
Create a new instance ofURLClassLoader
-
Uses of Nonnull in io.microsphere.util.jar
Methods in io.microsphere.util.jar with annotations of type Nonnull Modifier and Type Method Description 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
.
-