com.kuangkie.carbon.enun.SortDirection Maven / Gradle / Ivy
package com.kuangkie.carbon.enun;
public enum SortDirection {
DESC(1, "DESC"), // 降序
ASC(2, "ASC");// 升序
private String name;
private int index;
private SortDirection(int index, String name) {
this.name = name;
this.index = index;
}
public String getName() {
return name;
}
public int getIndex() {
return index;
}
}