java.lang.Object
org.microbean.lang.element.AnnotationValue
- All Implemented Interfaces:
AnnotationValue
A simple implementation of the
AnnotationValue interface.- Author:
- Laird Nelson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <R,P> R accept(AnnotationValueVisitor<R, P> v, P p) final booleanfinal ObjectgetValue()final inthashCode()static final AnnotationValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods 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:
acceptin interfaceAnnotationValue
-
getValue
- Specified by:
getValuein interfaceAnnotationValue
-
hashCode
public final int hashCode() -
equals
-
of
- Parameters:
value- the value; may benull- Returns:
- an
AnnotationValuewhosegetValue()method will return the suppliedvalue; nevernull - See Also:
-