Modifier and Type | Field and Description |
---|---|
static Set<String> |
ADVICE_STEREOTYPES
The advice stereotypes.
|
static String |
ANN_AROUND
The around annotation type.
|
static String |
ANN_AROUND_CONSTRUCT
The around annotation type.
|
static String |
ANN_INTERCEPTOR_BINDING
Name of the interceptor binding type.
|
static String |
ANN_INTERCEPTOR_BINDING_QUALIFIER
Name of the interceptor binding qualifier type.
|
static String |
ANN_INTERCEPTOR_BINDINGS
Name of the repeatable interceptor bindings type.
|
static String |
ANN_INTRODUCTION
The around annotation type.
|
static AnnotatedElement |
EMPTY_ANNOTATED_ELEMENT
An empty re-usable element.
|
static String |
INJECT
The meta annotation used for inject declarations.
|
static List<String> |
INTERNAL_ANNOTATION_NAMES |
static String |
KOTLIN_METADATA
Constant for Kotlin metadata.
|
static String |
NAMED
The meta annotation used for named qualifiers.
|
static String |
NON_NULL
Simple Annotation name used for non-null.
|
static String |
NULLABLE
Simple Annotation name used for nullable.
|
static String |
POST_CONSTRUCT
The meta annotation used for post-construct declarations.
|
static String |
PRE_DESTROY
The meta annotation used for pre-destroy declarations.
|
static String |
QUALIFIER
The meta annotation used for qualifier declarations.
|
static String |
SCOPE
The meta annotation used for scope declarations.
|
static String |
SINGLETON
The meta annotation used for singleton scope.
|
static List<String> |
STEREOTYPE_EXCLUDES
Packages excludes from stereotype processing.
|
static AnnotatedElement[] |
ZERO_ANNOTATED_ELEMENTS
Constant indicating an zero annotation.
|
static AnnotationValue<?>[] |
ZERO_ANNOTATION_VALUES
Constant indicating an zero annotation values.
|
static Annotation[] |
ZERO_ANNOTATIONS
Constant indicating an zero annotation.
|
Constructor and Description |
---|
AnnotationUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
areEqual(Object o1,
Object o2)
Computes whether 2 annotation values are equal.
|
static int |
calculateHashCode(Map<? extends CharSequence,Object> values)
Calculates the hash code of annotation values.
|
static List<String> |
internListOf(Object... objects)
Converts the given objects into a set of potentially cached and interned strings contained within an internal pool of lists.
|
static Map<String,Object> |
internMapOf(Object... values)
Converts the given objects into a map of potentially cached and interned strings where the keys and values are alternating entries in the passed array.
|
static Map<String,Object> |
internMapOf(String key,
Object value)
Converts the given objects into a map of potentially cached and interned strings where the keys and values are alternating entries in the passed array.
|
static Map<String,Object> |
mapOf(Object... array)
Create a new immutable
Map from an array of values. |
static Map<String,Object> |
mapOf(String key1,
Object value1)
Create a new immutable
Map . |
static Map<String,Object> |
mapOf(String key1,
Object value1,
String key2,
Object value2)
Create a new immutable
Map . |
static Map<String,Object> |
mapOf(String key1,
Object value1,
String key2,
Object value2,
String key3,
Object value3)
Create a new immutable
Map . |
static Map<String,Object> |
mapOf(String key1,
Object value1,
String key2,
Object value2,
String key3,
Object value3,
String key4,
Object value4)
Create a new immutable
Map . |
static Map<String,Object> |
mapOf(String key1,
Object value1,
String key2,
Object value2,
String key3,
Object value3,
String key4,
Object value4,
String key5,
Object value5)
Create a new immutable
Map . |
static Map<String,Object> |
mapOf(String key1,
Object value1,
String key2,
Object value2,
String key3,
Object value3,
String key4,
Object value4,
String key5,
Object value5,
String key6,
Object value6)
Create a new immutable
Map . |
static Map<String,Object> |
mapOf(String key1,
Object value1,
String key2,
Object value2,
String key3,
Object value3,
String key4,
Object value4,
String key5,
Object value5,
String key6,
Object value6,
String key7,
Object value7)
Create a new immutable
Map . |
static Map<String,Object> |
mapOf(String key1,
Object value1,
String key2,
Object value2,
String key3,
Object value3,
String key4,
Object value4,
String key5,
Object value5,
String key6,
Object value6,
String key7,
Object value7,
String key8,
Object value8)
Create a new immutable
Map . |
static Map<String,Object> |
mapOf(String key1,
Object value1,
String key2,
Object value2,
String key3,
Object value3,
String key4,
Object value4,
String key5,
Object value5,
String key6,
Object value6,
String key7,
Object value7,
String key8,
Object value8,
String key9,
Object value9)
Create a new immutable
Map . |
static Map<String,Object> |
mapOf(String key1,
Object value1,
String key2,
Object value2,
String key3,
Object value3,
String key4,
Object value4,
String key5,
Object value5,
String key6,
Object value6,
String key7,
Object value7,
String key8,
Object value8,
String key9,
Object value9,
String key10,
Object value10)
Create a new immutable
Map . |
public static final String KOTLIN_METADATA
public static final List<String> STEREOTYPE_EXCLUDES
public static final Annotation[] ZERO_ANNOTATIONS
public static final AnnotatedElement[] ZERO_ANNOTATED_ELEMENTS
public static final AnnotationValue<?>[] ZERO_ANNOTATION_VALUES
public static final AnnotatedElement EMPTY_ANNOTATED_ELEMENT
public static final String NULLABLE
public static final String NON_NULL
public static final String ANN_AROUND
public static final String ANN_AROUND_CONSTRUCT
public static final String ANN_INTRODUCTION
public static final String ANN_INTERCEPTOR_BINDING
public static final String ANN_INTERCEPTOR_BINDING_QUALIFIER
public static final String ANN_INTERCEPTOR_BINDINGS
public static final String INJECT
public static final String SCOPE
public static final String SINGLETON
public static final String QUALIFIER
public static final String NAMED
public static final String PRE_DESTROY
public static final String POST_CONSTRUCT
public static List<String> internListOf(Object... objects)
String.intern()
.
This method serves the purpose of reducing memory footprint by pooling common lists of annotations in compiled AnnotationMetadata
objects
- The objectspublic static Map<String,Object> internMapOf(Object... values)
String.intern()
.
The values stored at even number positions will be converted to strings and interned.
values
- The objectsCollectionUtils.mapOf(Object...)
public static Map<String,Object> internMapOf(String key, Object value)
String.intern()
.
The values stored at even number positions will be converted to strings and interned.
key
- The keyvalue
- The valuepublic static Map<String,Object> mapOf(Object... array)
Map
from an array of values.
String values must be sorted!array
- The key,value arraypublic static Map<String,Object> mapOf(String key1, Object value1)
Map
.
String values must be sorted!key1
- The key 1value1
- The value 1public static Map<String,Object> mapOf(String key1, Object value1, String key2, Object value2)
Map
.
String values must be sorted!key1
- The key1value1
- The value1key2
- The key2value2
- The value2public static Map<String,Object> mapOf(String key1, Object value1, String key2, Object value2, String key3, Object value3)
Map
.
String values must be sorted!key1
- The key1value1
- The value1key2
- The key2value2
- The value2key3
- The key3value3
- The value3public static Map<String,Object> mapOf(String key1, Object value1, String key2, Object value2, String key3, Object value3, String key4, Object value4)
Map
.
String values must be sorted!key1
- The key1value1
- The value1key2
- The key2value2
- The value2key3
- The key3value3
- The value3key4
- The key4value4
- The value4public static Map<String,Object> mapOf(String key1, Object value1, String key2, Object value2, String key3, Object value3, String key4, Object value4, String key5, Object value5)
Map
.
String values must be sorted!key1
- The key1value1
- The value1key2
- The key2value2
- The value2key3
- The key3value3
- The value3key4
- The key4value4
- The value4key5
- The key5value5
- The value5public static Map<String,Object> mapOf(String key1, Object value1, String key2, Object value2, String key3, Object value3, String key4, Object value4, String key5, Object value5, String key6, Object value6)
Map
.
String values must be sorted!key1
- The key1value1
- The value1key2
- The key2value2
- The value2key3
- The key3value3
- The value3key4
- The key4value4
- The value4key5
- The key5value5
- The value5key6
- The key6value6
- The value6public static Map<String,Object> mapOf(String key1, Object value1, String key2, Object value2, String key3, Object value3, String key4, Object value4, String key5, Object value5, String key6, Object value6, String key7, Object value7)
Map
.
String values must be sorted!key1
- The key1value1
- The value1key2
- The key2value2
- The value2key3
- The key3value3
- The value3key4
- The key4value4
- The value4key5
- The key5value5
- The value5key6
- The key6value6
- The value6key7
- The key7value7
- The value7public static Map<String,Object> mapOf(String key1, Object value1, String key2, Object value2, String key3, Object value3, String key4, Object value4, String key5, Object value5, String key6, Object value6, String key7, Object value7, String key8, Object value8)
Map
.
String values must be sorted!key1
- The key1value1
- The value1key2
- The key2value2
- The value2key3
- The key3value3
- The value3key4
- The key4value4
- The value4key5
- The key5value5
- The value5key6
- The key6value6
- The value6key7
- The key7value7
- The value7key8
- The key8value8
- The value8public static Map<String,Object> mapOf(String key1, Object value1, String key2, Object value2, String key3, Object value3, String key4, Object value4, String key5, Object value5, String key6, Object value6, String key7, Object value7, String key8, Object value8, String key9, Object value9)
Map
.
String values must be sorted!key1
- The key1value1
- The value1key2
- The key2value2
- The value2key3
- The key3value3
- The value3key4
- The key4value4
- The value4key5
- The key5value5
- The value5key6
- The key6value6
- The value6key7
- The key7value7
- The value7key8
- The key8value8
- The value8key9
- The key9value9
- The value9public static Map<String,Object> mapOf(String key1, Object value1, String key2, Object value2, String key3, Object value3, String key4, Object value4, String key5, Object value5, String key6, Object value6, String key7, Object value7, String key8, Object value8, String key9, Object value9, String key10, Object value10)
Map
.
String values must be sorted!key1
- The key1value1
- The value1key2
- The key2value2
- The value2key3
- The key3value3
- The value3key4
- The key4value4
- The value4key5
- The key5value5
- The value5key6
- The key6value6
- The value6key7
- The key7value7
- The value7key8
- The key8value8
- The value8key9
- The key9value9
- The value9key10
- The key10value10
- The value10public static int calculateHashCode(Map<? extends CharSequence,Object> values)
values
- The map to calculate values' hash code