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.vamf.scheduling.varutility.domain;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlAccessorType(value = XmlAccessType.NONE)
@XmlRootElement(namespace = Namespace.VarUtility)
public class StopCode implements Comparable<StopCode> {
@XmlElement
String primary;
@XmlElement
String secondary;
public StopCode() {}
public StopCode(String primary, String secondary) {
this.primary = primary;
this.secondary = secondary;
}
public String getPrimary() {
return primary;
}
public void setPrimary(String primary) {
this.primary = primary;
}
public String getSecondary() {
return secondary;
}
public void setSecondary(String secondary) {
this.secondary = secondary;
}
public int compareTo(StopCode code) {
int result = primary.compareTo(code.primary);
if(result == 0) {
return secondary.compareTo(code.secondary);
}
else {
return result;
}
}
}