Annotation Interface Priority


@Inherited @Target(TYPE) @Retention(RUNTIME) public @interface Priority
Indicates the relative priority of the annotated component. Components with a higher priority are considered before those with lower priority.
Since:
2.1
Author:
Allard Buijze
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    A value indicating the priority.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Value indicating the annotated member should be the very first
    static final int
    Value indicating the annotated member should have high priority, effectively placing it "in the first half".
    static final int
    Value indicating the annotated member should be placed at the "upper quarter".
    static final int
    Value indicating the annotated member should come last.
    static final int
    Value indicating the annotated member should be placed at the "lower half".
    static final int
    Value indicating the annotated member should be placed at the "lower quarter".
    static final int
    Value indicating the annotated member should have medium priority, effectively placing it "in the middle".
  • Field Details

    • LAST

      static final int LAST
      Value indicating the annotated member should come last.
      See Also:
    • LOWER

      static final int LOWER
      Value indicating the annotated member should be placed at the "lower quarter".
      See Also:
    • LOW

      static final int LOW
      Value indicating the annotated member should be placed at the "lower half".
      See Also:
    • NEUTRAL

      static final int NEUTRAL
      Value indicating the annotated member should have medium priority, effectively placing it "in the middle".
      See Also:
    • HIGH

      static final int HIGH
      Value indicating the annotated member should have high priority, effectively placing it "in the first half".
      See Also:
    • HIGHER

      static final int HIGHER
      Value indicating the annotated member should be placed at the "upper quarter".
      See Also:
    • FIRST

      static final int FIRST
      Value indicating the annotated member should be the very first
      See Also:
  • Element Details

    • value

      int value
      A value indicating the priority. Members with higher values must come before members with a lower value
      Default:
      0