Annotation Type Positive


  • @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 includesZero
      Sets whether zero is considered a positive number (default true)
    • Element Detail

      • includesZero

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