static final class AnnotationValue.FloatValue extends AnnotationValue
AnnotationValue.ArrayValue, AnnotationValue.BooleanValue, AnnotationValue.ByteValue, AnnotationValue.CharacterValue, AnnotationValue.ClassValue, AnnotationValue.DoubleValue, AnnotationValue.EnumValue, AnnotationValue.FloatValue, AnnotationValue.IntegerValue, AnnotationValue.Kind, AnnotationValue.LongValue, AnnotationValue.NestedAnnotation, AnnotationValue.ShortValue, AnnotationValue.StringValue
Modifier and Type | Field and Description |
---|---|
private float |
value |
EMPTY_VALUE_ARRAY
Constructor and Description |
---|
FloatValue(java.lang.String name,
float value) |
Modifier and Type | Method and Description |
---|---|
byte |
asByte()
Converts the underlying numerical type to a byte as if it was
casted in Java.
|
double |
asDouble()
Converts the underlying numerical type to a double as if it was
casted in Java.
|
float |
asFloat()
Converts the underlying numerical type to a float as if it was
casted in Java.
|
int |
asInt()
Converts the underlying numerical type to an integer as if it was
casted in Java.
|
long |
asLong()
Converts the underlying numerical type to an long as if it was
casted in Java.
|
short |
asShort()
Converts the underlying numerical type to a short as if it was
casted in Java.
|
boolean |
equals(java.lang.Object o)
Compares this annotation value to another annotation value, and returns true if equal.
|
int |
hashCode()
Computes a hash code for this annotation value.
|
AnnotationValue.Kind |
kind()
Returns the kind of this value.
|
java.lang.Float |
value()
Returns a detyped value that represents the underlying annotation value.
|
asArray, asBoolean, asBooleanArray, asByteArray, asChar, asCharArray, asClass, asClassArray, asDoubleArray, asEnum, asEnumArray, asEnumType, asEnumTypeArray, asFloatArray, asIntArray, asLongArray, asNested, asNestedArray, asShortArray, asString, asStringArray, componentKind, createArrayValue, createBooleanValue, createByteValue, createCharacterValue, createClassValue, createDouleValue, createEnumValue, createFloatValue, createIntegerValue, createLongalue, createNestedAnnotationValue, createShortValue, createStringValue, name, toString
public java.lang.Float value()
AnnotationValue
value
in class AnnotationValue
public AnnotationValue.Kind kind()
AnnotationValue
A special AnnotationValue.Kind.UNKNOWN
kind is used to refer to components
of zero-length arrays, as the underlying type is not known.
kind
in class AnnotationValue
public int asInt()
AnnotationValue
asInt
in class AnnotationValue
public long asLong()
AnnotationValue
asLong
in class AnnotationValue
public short asShort()
AnnotationValue
asShort
in class AnnotationValue
public byte asByte()
AnnotationValue
asByte
in class AnnotationValue
public float asFloat()
AnnotationValue
asFloat
in class AnnotationValue
public double asDouble()
AnnotationValue
asDouble
in class AnnotationValue
public boolean equals(java.lang.Object o)
AnnotationValue
equals
in class AnnotationValue
o
- the annotation value to compare to.Object.equals(Object)
public int hashCode()
AnnotationValue
hashCode
in class AnnotationValue
Object.hashCode()