Interface AnnotationValue.OfDouble

All Superinterfaces:
AnnotationValue, AnnotationValue.OfConstant
Enclosing interface:
AnnotationValue

public static sealed interface AnnotationValue.OfDouble extends AnnotationValue.OfConstant
Models a double value of an element-value pair. The tag of this value is 68.
Since:
24
  • Method Details

    • constant

      DoubleEntry constant()
      Returns the backing double entry.
      Specified by:
      constant in interface AnnotationValue.OfConstant
      Returns:
      the backing double entry
    • doubleValue

      double doubleValue()
      Returns the constant double value.
      Returns:
      the constant double value
    • resolvedValue

      default Double resolvedValue()
      Returns the resolved double value.
      Specified by:
      resolvedValue in interface AnnotationValue.OfConstant
      Implementation Requirements:
      This method returns the same as doubleValue().
      Returns:
      the resolved double value