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 Classes Modifier and Type Interface Description static class
AnnotationValue.ForConstant.PropertyDelegate.ForArrayType
A property delegate for an array type of a constant value.static class
AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType
A property delegate for a non-array type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <S> S
copy(S value)
Copies the provided value, if it is not immutable.boolean
equals(java.lang.Object self, java.lang.Object other)
Determines if another value is equal to a constant annotation value.int
hashCode(java.lang.Object value)
Computes the value's hash code.java.lang.String
toString(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:
true
if 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
String
representation of the provided value.
-
-