org.nutz.web.query.SORT Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz-web Show documentation
Show all versions of nutz-web Show documentation
Nutz, which is a collections of lightweight frameworks, each of them can be used independently
package org.nutz.web.query;
public enum SORT {
/**
* 从小到大
*/
ASC(1),
/**
* 从大到小
*/
DESC(-1);
private int value = 0;
SORT(int v) {
this.value = v;
}
public static SORT valueOf(int v) {
switch (v) {
case 1:
return ASC;
case -1:
return DESC;
default:
return ASC;
}
}
public int value() {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy