protected static interface AnnotationValue.ForConstant.PropertyDelegate
Modifier and Type | Interface and 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.
|
Modifier and Type | Method and 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 a
String . |
<S> S copy(S value)
S
- The value's type.value
- The value to copy.int hashCode(java.lang.Object value)
value
- The value for which to compute the hash code.boolean equals(java.lang.Object self, java.lang.Object other)
self
- The value that is represented as a constant annotation value.other
- Any other value for which to determine equality.true
if the provided value is equal to the represented value.java.lang.String toString(java.lang.Object value)
String
.value
- The value to render.String
representation of the provided value.