Direction.java
381 Bytes
package com.hotent.entity.query;
/**
* 排序对象
*
* @company 广州宏天软件股份有限公司
* @author heyifan
* @email heyf@jee-soft.cn
* @date 2018年4月4日
*/
public enum Direction {
ASC,
DESC;
public static Direction fromString(String value) {
try {
return Direction.valueOf(value.toUpperCase());
} catch (Exception e) {
return ASC;
}
}
}