Annotation Type Negative


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

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean includesZero
      Sets whether zero is considered a negative number (default false)
    • Element Detail

      • includesZero

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