Interface AnnotationValue.OfByte

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

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

    • constant

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

      byte byteValue()
      Returns the constant byte value.
      Returns:
      the constant byte value
    • resolvedValue

      default Byte resolvedValue()
      Returns the resolved byte value.
      Specified by:
      resolvedValue in interface AnnotationValue.OfConstant
      Implementation Requirements:
      This method returns the same as byteValue().
      Returns:
      the resolved byte value