Interface AnnotationValue.ForConstant.PropertyDelegate
-
- All Known Implementing Classes:
AnnotationValue.ForConstant.PropertyDelegate.ForArrayType,AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType
- Enclosing class:
- AnnotationValue.ForConstant<U>
protected static interface AnnotationValue.ForConstant.PropertyDelegateA property delegate for a constant annotation value.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAnnotationValue.ForConstant.PropertyDelegate.ForArrayTypeA property delegate for an array type of a constant value.static classAnnotationValue.ForConstant.PropertyDelegate.ForNonArrayTypeA property delegate for a non-array type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <S> Scopy(S value)Copies the provided value, if it is not immutable.booleanequals(java.lang.Object self, java.lang.Object other)Determines if another value is equal to a constant annotation value.inthashCode(java.lang.Object value)Computes the value's hash code.java.lang.StringtoString(java.lang.Object value)Renders the supplied value as aString.
-
-
-
Method Detail
-
copy
<S> S copy(S value)
Copies the provided value, if it is not immutable.- Type Parameters:
S- The value's type.- Parameters:
value- The value to copy.- Returns:
- A copy of the provided instance or the provided value, if it is immutable.
-
hashCode
int hashCode(java.lang.Object value)
Computes the value's hash code.- Parameters:
value- The value for which to compute the hash code.- Returns:
- The hash code of the provided value.
-
equals
boolean equals(java.lang.Object self, java.lang.Object other)Determines if another value is equal to a constant annotation value.- Parameters:
self- The value that is represented as a constant annotation value.other- Any other value for which to determine equality.- Returns:
trueif the provided value is equal to the represented value.
-
toString
java.lang.String toString(java.lang.Object value)
Renders the supplied value as aString.- Parameters:
value- The value to render.- Returns:
- An appropriate
Stringrepresentation of the provided value.
-
-