接口的使用
org.springframework.beans.support.SortDefinition
使用SortDefinition的程序包 程序包 说明 org.springframework.beans.support Classes supporting the org.springframework.beans package, such as utility classes for sorting and holding lists of beans.org.springframework.beans.support中SortDefinition的使用
实现SortDefinition的org.springframework.beans.support中的类 修饰符和类型 类 说明 class
MutableSortDefinition
Mutable implementation of theSortDefinition
interface.返回SortDefinition的org.springframework.beans.support中的方法 修饰符和类型 方法 说明 protected SortDefinition
PagedListHolder. copySortDefinition(SortDefinition sort)
Create a deep copy of the given sort definition, for use as state holder to compare a modified sort definition against.SortDefinition
PagedListHolder. getSort()
Return the sort definition for this holder.SortDefinition
PropertyComparator. getSortDefinition()
Return the SortDefinition that this comparator uses.参数类型为SortDefinition的org.springframework.beans.support中的方法 修饰符和类型 方法 说明 protected SortDefinition
PagedListHolder. copySortDefinition(SortDefinition sort)
Create a deep copy of the given sort definition, for use as state holder to compare a modified sort definition against.protected void
PagedListHolder. doSort(List<E> source, SortDefinition sort)
Actually perform sorting of the given source list, according to the given sort definition.void
PagedListHolder. setSort(SortDefinition sort)
Set the sort definition for this holder.static void
PropertyComparator. sort(Object[] source, SortDefinition sortDefinition)
Sort the given source according to the given sort definition.static void
PropertyComparator. sort(List<?> source, SortDefinition sortDefinition)
Sort the given List according to the given sort definition.参数类型为SortDefinition的org.springframework.beans.support中的构造器 构造器 说明 MutableSortDefinition(SortDefinition source)
Copy constructor: create a new MutableSortDefinition that mirrors the given sort definition.PagedListHolder(List<E> source, SortDefinition sort)
Create a new holder instance with the given source list.PropertyComparator(SortDefinition sortDefinition)
Create a new PropertyComparator for the given SortDefinition.