Interface AnnotationValue.OfShort

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

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

    • constant

      IntegerEntry constant()
      Returns the backing integer entry.
      Specified by:
      constant in interface AnnotationValue.OfConstant
      Returns:
      the backing integer entry
    • shortValue

      short shortValue()
      Returns the constant short value.
      Returns:
      the constant short value
    • resolvedValue

      default Short resolvedValue()
      Returns the resolved short value.
      Specified by:
      resolvedValue in interface AnnotationValue.OfConstant
      Implementation Requirements:
      This method returns the same as shortValue().
      Returns:
      the resolved short value