All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nutz.web.query.SORT Maven / Gradle / Ivy

Go to download

Nutz, which is a collections of lightweight frameworks, each of them can be used independently

There is a newer version: 1.r.67
Show newest version
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