Class MethodOrderer.OrderAnnotation

  • All Implemented Interfaces:
    MethodOrderer
    Enclosing interface:
    MethodOrderer

    public static class MethodOrderer.OrderAnnotation
    extends Object
    implements MethodOrderer
    MethodOrderer that sorts methods based on the @Order annotation.

    Any methods that are assigned the same order value will be sorted arbitrarily adjacent to each other.

    Any methods not annotated with @Order will be assigned a default order value of Integer.MAX_VALUE which will effectively cause them to appear at the end of the sorted list.