@Retention(RUNTIME) @Target(FIELD) public @interface Positive
Annotation that marks values as being restricted to being a positive value
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Sets whether zero is considered a positive number (default true)
  • Element Details

    • includesZero

      boolean includesZero
      Sets whether zero is considered a positive number (default true)
      Returns:
      True if zero is considered positive, false otherwise
      Default:
      true