Package 

Annotation IntRange

  • All Implemented Interfaces:
    java.lang.annotation.Annotation

    @Retention(value = )@Target(value = {}) 
    public @interface IntRange
    
                        

    Denotes that the annotated element should be an int or long in the given range

    Example:

     @IntRange(from=0,to=255) public int getAlpha() { ... } 
    • Method Summary

      Modifier and Type Method Description
      abstract long from() Smallest value, inclusive
      abstract long to() Largest value, inclusive
      • Methods inherited from class java.lang.annotation.Annotation

        annotationType, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • from

         abstract long from()

        Smallest value, inclusive

      • to

         abstract long to()

        Largest value, inclusive