final class AnnotationProperty
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The property name.
|
private java.lang.Class<?> |
type
The property type.
|
private java.lang.Object |
value
The property value.
|
Constructor and Description |
---|
AnnotationProperty(java.lang.String name,
java.lang.Class<?> type)
Creates a new annotation property instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Returns the property name.
|
java.lang.Class<?> |
getType()
Returns the property type.
|
java.lang.Object |
getValue()
Returns the property value.
|
protected int |
getValueHashCode()
Calculates this annotation value hash code.
|
int |
hashCode() |
void |
setValue(java.lang.Object value)
Sets the property value.
|
java.lang.String |
toString() |
protected java.lang.String |
valueToString()
Calculates the
toString of the property value. |
private final java.lang.String name
private final java.lang.Class<?> type
private java.lang.Object value
public AnnotationProperty(java.lang.String name, java.lang.Class<?> type)
name
- the property name.type
- the property type.public java.lang.String getName()
public java.lang.Class<?> getType()
public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- the property value.public int hashCode()
hashCode
in class java.lang.Object
protected int getValueHashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
protected java.lang.String valueToString()
toString
of the property value.toString
of the property value.