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.PropertyDelegate
A property delegate for a constant annotation value.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
A property delegate for an array type of a constant value.static enum
A property delegate for a non-array type. -
Method Summary
-
Method Details
-
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
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
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:
true
if the provided value is equal to the represented value.
-
toString
Renders the supplied value as aString
.- Parameters:
value
- The value to render.- Returns:
- An appropriate
String
representation of the provided value.
-