
net.dona.doip.client.SortField Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of doip-sdk Show documentation
Show all versions of doip-sdk Show documentation
DOIP Software Development Kit that implements DOIP v2 Specification.
package net.dona.doip.client;
/**
* A specification of part of a sort order for {@link QueryParams}.
*/
public class SortField {
private final String name;
private final boolean reverse;
/**
* Constructs a SortField.
*
* @param name the name of the field to sort on
* @param reverse if true, reverse the sort order
*/
public SortField(String name, boolean reverse) {
this.name = name;
this.reverse = reverse;
}
public SortField(String name) {
this(name, false);
}
public String getName() {
return name;
}
public boolean isReverse() {
return reverse;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy