Class AnnotationInfo.AnnotationParamValue
- java.lang.Object
-
- io.github.lukehutch.fastclasspathscanner.scanner.AnnotationInfo.AnnotationParamValue
-
- All Implemented Interfaces:
Comparable<AnnotationInfo.AnnotationParamValue>
- Enclosing class:
- AnnotationInfo
public static class AnnotationInfo.AnnotationParamValue extends Object implements Comparable<AnnotationInfo.AnnotationParamValue>
A wrapper used to pair annotation parameter names with annotation parameter values.
-
-
Constructor Summary
Constructors Constructor Description AnnotationParamValue(String paramName, Object paramValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(AnnotationInfo.AnnotationParamValue o)
boolean
equals(Object obj)
String
getParamName()
Get the annotation parameter name.Object
getParamValue()
Get the annotation parameter value.String
toString()
-
-
-
Method Detail
-
getParamName
public String getParamName()
Get the annotation parameter name.- Returns:
- The annotation parameter name.
-
getParamValue
public Object getParamValue()
Get the annotation parameter value.- Returns:
- The annotation parameter value. May be one of the following types:
- String for string constants
- A wrapper type, e.g. Integer or Character, for primitive-typed constants
Object
[] for array types (and then the array element type may be one of the types in this list)AnnotationInfo.AnnotationEnumValue
, for enum constants (this wraps the enum class and the string name of the constant)AnnotationInfo.AnnotationClassRef
, for Class references within annotations (this wraps the name of the referenced class)AnnotationInfo
, for nested annotations
-
compareTo
public int compareTo(AnnotationInfo.AnnotationParamValue o)
- Specified by:
compareTo
in interfaceComparable<AnnotationInfo.AnnotationParamValue>
-
-