Annotation Type IntegerDefault


@Retention(RUNTIME) @Target(METHOD) public @interface IntegerDefault
Specifies the default value as an integer.

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

    • value

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

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