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.
MethodOrderer.Alphanumeric, MethodOrderer.OrderAnnotation, MethodOrderer.Random
Constructor and Description |
---|
OrderAnnotation() |
Modifier and Type | Method and Description |
---|---|
void |
orderMethods(MethodOrdererContext context)
Sort the methods encapsulated in the supplied
MethodOrdererContext based on the @Order
annotation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultExecutionMode
public void orderMethods(MethodOrdererContext context)
MethodOrdererContext
based on the @Order
annotation.orderMethods
in interface MethodOrderer
context
- the MethodOrdererContext
containing the
method descriptors
to order; never null
MethodOrderer.getDefaultExecutionMode()
Copyright © 2023. All rights reserved.