Annotation Type ShortDefault


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

This annotation is made to be used with short or Short and not other numeric types. It is only supported by the short 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
    short
    The short value to provide as an "if missing" default.
    short
    The short value to provide as a default.
  • Element Details

    • value

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

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