Annotation Interface Order


@Retention(RUNTIME) @Target({METHOD,TYPE,FIELD}) public @interface Order
@Order defines the sort order for an annotated component.

The value() is optional and represents an order value for objects that should be orderable, for example in a Collection. Lower values have higher priority. The default value is Integer.MAX_VALUE, indicating the lowest priority (losing to any other specified order value).

Consult the javadoc for OrderComparator for details on the sort semantics for non-ordered objects.

Since:
1.0
Author:
Blyzhnytsia Team
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    int
    The order value.
  • Element Details

    • value

      int value
      The order value.

      Default is Integer.MAX_VALUE.

      Default:
      2147483647