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.ewv.codes;
import java.io.Serializable;
//import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
@SuppressWarnings("serial")
public class ECodesContainer implements Serializable {
//private static final long serialVersionUID = -5504618821216378225L;
private List<ECode> e_Codes;
public ECodesContainer(List<ECode> eCodes) {
this.e_Codes = eCodes;
}
public List<ECode> getE_Codes() {
return e_Codes;
}
public void setE_Codes(List<ECode> eCodes) {
this.e_Codes = eCodes;
}
public boolean getShouldRender() {
boolean returnVal = false;
if (e_Codes != null && e_Codes.size() > 0) {
returnVal = true;
}
return returnVal;
}
public List<String> geteCodes() {
List<String> eCodes = e_Codes.stream()
.sorted() // sort by sequenceNumber, before it is stripped off
.map(ECode::getValueWithPoa)
.collect(Collectors.toList());
// Collections.sort(this.e_Codes); // sort by sequenceNumber, before it is stripped off
// List<String> eCodes = new ArrayList<>();
// for (ECode code : e_Codes) {
// String eCode = code.getValueWithPoa(); //code.getSequenceNumberAsString() + code.getValueWithPoa();
// eCodes.add(eCode);
// }
//// Collections.sort(eCodes); // sort by value
return eCodes;
}
}