Specifies that a method must be used as a sorter on a service.
This annotation must be used in conjunction with
ServiceDefinition.
The annotated method must follow the following rules:
- Sorter method only applies to methods of a service
- Sorter method does not apply to static methods
- Sorter method must have no-args
- Sorter method must return double, int, long or comparable
- Sorter method must not throw checked exceptions
- Author:
- Philippe Charles
-
Optional Element Summary
Optional Elements
-
Element Details
-
reverse
boolean reverseApplies a reverse sorting.- Returns:
- true for reverse sorting, false otherwise
- Default:
false
-
position
int positionSets the sorter ordering in case of multiple sorters.- Returns:
- an ordering
- Default:
2147483647
-