io.infinicast.client.api.query.SortCriteria Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinicast-client-jdk8 Show documentation
Show all versions of infinicast-client-jdk8 Show documentation
Infinicast SDK to communicate with the cloud.
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);
}
}