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.
  • 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

      int hashCode(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(Object self, 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

      String toString(Object value)
      Renders the supplied value as a String.
      Parameters:
      value - The value to render.
      Returns:
      An appropriate String representation of the provided value.