Annotation Type ByteDefault


@Retention(RUNTIME) @Target(METHOD) public @interface ByteDefault
Specifies the default value as a byte.

This annotation is made to be used with byte or Byte and not other numeric types. It is only supported by the byte liaison. Its presence will also override the value of the default method, if it exists.

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    byte
    The byte value to provide as an "if missing" default.
    byte
    The byte value to provide as a default
  • Element Details

    • value

      byte value
      The byte value to provide as a default
      Returns:
      the byte value
    • ifMissing

      byte ifMissing
      The byte value to provide as an "if missing" default. See DefaultValues.ifMissing() for considerations.
      Returns:
      the byte value if missing