java.lang.Object
org.microbean.lang.element.AnnotationValue
- All Implemented Interfaces:
AnnotationValue
A simple implementation of the
AnnotationValue
interface.- Author:
- Laird Nelson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal <R,
P> R accept
(AnnotationValueVisitor<R, P> v, P p) final boolean
final Object
getValue()
final int
hashCode()
static final AnnotationValue
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.lang.model.element.AnnotationValue
toString
-
Constructor Details
-
AnnotationValue
Creates a newAnnotationValue
.- Parameters:
value
- the value to be returned by thegetValue()
method; may benull
- See Also:
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceAnnotationValue
-
getValue
- Specified by:
getValue
in interfaceAnnotationValue
-
hashCode
public final int hashCode() -
equals
-
of
- Parameters:
value
- the value; may benull
- Returns:
- an
AnnotationValue
whosegetValue()
method will return the suppliedvalue
; nevernull
- See Also:
-