@Target(value={METHOD,FIELD}) @Retention(value=RUNTIME) public @interface SortComparator
Specifies in-memory Set/Map sorting using a specified Comparator for sorting.
NOTE : Sorting is different than ordering (see OrderBy) which is applied during the SQL SELECT.
For sorting based on natural sort order, use SortNatural instead. It is illegal to combine
SortComparator and SortNatural.
OrderBy,
SortComparator| Modifier and Type | Required Element and Description |
|---|---|
Class<? extends Comparator<?>> |
value
Specifies the comparator class to use.
|
public abstract Class<? extends Comparator<?>> value
Specifies the comparator class to use.
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.