Package jnr.ffi.util
Class AnnotationProperty
- java.lang.Object
-
- jnr.ffi.util.AnnotationProperty
-
final class AnnotationProperty extends java.lang.ObjectDescribes an annotation property.- Version:
- $Id$
-
-
Constructor Summary
Constructors Constructor Description AnnotationProperty(java.lang.String name, java.lang.Class<?> type)Creates a new annotation property instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetName()Returns the property name.java.lang.Class<?>getType()Returns the property type.java.lang.ObjectgetValue()Returns the property value.protected intgetValueHashCode()Calculates this annotation value hash code.inthashCode()voidsetValue(java.lang.Object value)Sets the property value.java.lang.StringtoString()protected java.lang.StringvalueToString()Calculates thetoStringof the property value.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns the property name.- Returns:
- the property name.
-
getType
public java.lang.Class<?> getType()
Returns the property type.- Returns:
- the property type.
-
getValue
public java.lang.Object getValue()
Returns the property value.- Returns:
- the property value.
-
setValue
public void setValue(java.lang.Object value)
Sets the property value.- Parameters:
value- the property value.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getValueHashCode
protected int getValueHashCode()
Calculates this annotation value hash code.- Returns:
- this annotation value hash code.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
valueToString
protected java.lang.String valueToString()
Calculates thetoStringof the property value.- Returns:
- the
toStringof the property value.
-
-