Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

package gov.va.med.pbm.ampl.utility.operations.criteria;

/**
* The SortCriteria class which sets the format for the URL endpoint sorts.
*
* @author Ian Meinert
*
*/
public class SortCriteria {

/**
*
*/
private String key;

/**
*
*/
private String direction;

/**
* The overloaded constructor accepting a key and direction for sorting.
*
* @param key the field to sort
* @param direction the direction to sort
*/
public SortCriteria(String key, String direction) {
this.key = key;
this.direction = direction;
}

/**
* The getter for the key.
*
*
* @return the field to sort
*/
public String getKey() {
return key;
}

/**
* The setter for the key.
*
* @param key the field to sort
*
*/
public void setKey(String key) {
this.key = key;
}

/**
* The getter for the direction.
*
*
* @return the direction to sort
*/
public String getDirection() {
return direction;
}

/**
* The setter for the direction.
*
* @param direction the direction to sort
*
*/
public void setDirection(String direction) {
this.direction = direction;
}
}