Interface AnnotationValue.ForConstant.PropertyDelegate

    • 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 a String.
        Parameters:
        value - The value to render.
        Returns:
        An appropriate String representation of the provided value.