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

org.ccs.openim.constants.PullOrder Maven / Gradle / Ivy

There is a newer version: 0.7-nospring
Show newest version
package org.ccs.openim.constants;

/**
 * 数据排序方式
 */
public enum PullOrder {
    /**
     * 正序
     */
    ASC(0, "Asc"),
    /**
     * 反序
     */
    DESC(1, "Desc");
    private final int type;
    private final String typeName;

    PullOrder(int type, String typeName) {
        this.type = type;
        this.typeName = typeName;
    }

    public String getTypeName() {
        return typeName;
    }

    public int getType() {
        return type;
    }

    public static PullOrder parse(int status) {
        switch (status) {
            case 0:
                return ASC;
            case 1:
                return DESC;
        }
        return null;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy