注释类型 SortComparator
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface SortComparator
Specifies in-memory Set/Map sorting using a specifiedComparatorfor sorting. NOTE : Sorting is different than ordering (seeOrderBy) which is applied during the SQL SELECT. For sorting based on natural sort order, useSortNaturalinstead. It is illegal to combineSortComparatorandSortNatural.- 作者:
- Steve Ebersole
- 另请参阅:
OrderBy,SortComparator
-
-
必需元素概要
所需元素 修饰符和类型 必需的元素 说明 Class<? extends Comparator<?>>valueSpecifies the comparator class to use.
-
-
-
元素详细资料
-
value
Class<? extends Comparator<?>> value
Specifies the comparator class to use.
-
-