MethodOrderer
public static class MethodOrderer.Alphanumeric extends 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
Constructor | Description |
---|---|
Alphanumeric() |
Modifier and Type | Method | Description |
---|---|---|
void |
orderMethods(MethodOrdererContext context) |
Sort the methods encapsulated in the supplied
MethodOrdererContext alphanumerically based on their names
and formal parameter lists. |
getDefaultExecutionMode
public void orderMethods(MethodOrdererContext context)
MethodOrdererContext
alphanumerically based on their names
and formal parameter lists.orderMethods
in interface MethodOrderer
context
- the MethodOrdererContext
containing the
method descriptors
to order; never null
MethodOrderer.getDefaultExecutionMode()
Copyright © 2019. All rights reserved.