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 the default order value which will effectively cause them to appear at the end of the sorted list, unless certain methods are assigned an explicit order value greater than the default order value. Any methods assigned an explicit order value greater than the default order value will appear after non-annotated methods in the sorted list.