| 程序包 | 说明 |
|---|---|
| com.github.luomingxuorg.javautil.entity | |
| com.github.luomingxuorg.javautil.util |
| 限定符和类型 | 字段和说明 |
|---|---|
private Sort.Direction |
Sort.direction
排序方式, 默认倒序
|
| 限定符和类型 | 方法和说明 |
|---|---|
static Sort.Direction |
Sort.Direction.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static Sort.Direction[] |
Sort.Direction.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
| 构造器和说明 |
|---|
Sort(String fieldName,
Sort.Direction direction) |
| 限定符和类型 | 方法和说明 |
|---|---|
private static Integer |
SortUtil.compare(Method method,
Object one,
Object two,
Sort.Direction direction)
do method
|
private static Integer |
SortUtil.compare(Object one,
Object two,
Sort.Direction direction)
compare two object which could be Integer, Double,
Long, Short, Float, Date
|
private static Integer |
SortUtil.compare(Object paramOne,
Object paramTwo,
String fieldName,
Sort.Direction direction)
给doSort方法调用的比较方法
|
Copyright © 2019. All rights reserved.