Annotation Type LongDefault


@Retention(RUNTIME) @Target(METHOD) public @interface LongDefault
Specifies the default value as a long

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

    • value

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

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