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

os.failsafe.executor.Sort Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package os.failsafe.executor;

public class Sort {

    public String field;
    public Direction direction;

    public Sort(Field field, Direction d) {
        this.field = field.name();
        this.direction = d;
    }

    @Override
    public String toString() {
        return field + ' ' + direction.toString();
    }

    public enum Direction {
        ASC, DESC;

        @Override
        public String toString() {
            return this.name().toLowerCase();
        }
    }

    public enum Field {
        ID, FAIL_TIME, CREATED_DATE, NAME, PARAMETER, RETRY_COUNT
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy