public static class MethodOrderer.Alphanumeric extends java.lang.Object implements MethodOrderer
MethodOrderer that sorts methods alphanumerically based on their
names using String.compareTo(String).
If two methods have the same name, String representations of
their formal parameter lists will be used as a fallback for comparing the
methods.
MethodOrderer.Alphanumeric, MethodOrderer.OrderAnnotation, MethodOrderer.Random| Modifier and Type | Field and Description |
|---|---|
private static java.util.Comparator<MethodDescriptor> |
comparator |
| Constructor and Description |
|---|
Alphanumeric() |
| Modifier and Type | Method and Description |
|---|---|
void |
orderMethods(MethodOrdererContext context)
Sort the methods encapsulated in the supplied
MethodOrdererContext alphanumerically based on their names
and formal parameter lists. |
private static java.lang.String |
parameterList(java.lang.reflect.Method method) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDefaultExecutionModeprivate static final java.util.Comparator<MethodDescriptor> comparator
public void orderMethods(MethodOrdererContext context)
MethodOrdererContext alphanumerically based on their names
and formal parameter lists.orderMethods in interface MethodOrderercontext - the MethodOrdererContext containing the
method descriptors to order; never nullMethodOrderer.getDefaultExecutionMode()private static java.lang.String parameterList(java.lang.reflect.Method method)