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

io.infinicast.client.api.query.SortCriteria Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package io.infinicast.client.api.query;

public class SortCriteria {
    String _field;
    boolean _isAscending;
    public static SortCriteria byField(String field, boolean isAscending) {
        SortCriteria sort = new SortCriteria();
        sort.setField(field);
        sort.setIsAscending(isAscending);
        return sort;
    }
    public String getField() {
        return this._field;
    }
    public void setField(String value) {
        this._field = value;
    }
    public boolean getIsAscending() {
        return this._isAscending;
    }
    public void setIsAscending(boolean value) {
        this._isAscending = value;
    }
    public static SortCriteria byField(String field) {
        return SortCriteria.byField(field, true);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy