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(Object self,
Object other)
Determines if another value is equal to a constant annotation value.
|
int |
hashCode(Object value)
Computes the value's hash code.
|
String |
toString(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(Object value)
value
- The value for which to compute the hash code.boolean equals(Object self, 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.Copyright © 2014–2024. All rights reserved.