[Graph DUMP] Remove dump of measure until it will be clear where to put it (at the level of result or at the level of the instance)
This commit is contained in:
parent
7bd224f051
commit
0857849a86
|
@ -43,15 +43,15 @@ public class ResultMapper implements Serializable {
|
|||
try {
|
||||
|
||||
addTypeSpecificInformation(out, input, ort);
|
||||
Optional<List<Measure>> mes = Optional.ofNullable(input.getMeasures());
|
||||
if (mes.isPresent()) {
|
||||
List<KeyValue> measure = new ArrayList<>();
|
||||
mes
|
||||
.get()
|
||||
.forEach(
|
||||
m -> m.getUnit().forEach(u -> measure.add(KeyValue.newInstance(m.getId(), u.getValue()))));
|
||||
out.setMeasures(measure);
|
||||
}
|
||||
// Optional<List<Measure>> mes = Optional.ofNullable(input.getMeasures());
|
||||
// if (mes.isPresent()) {
|
||||
// List<KeyValue> measure = new ArrayList<>();
|
||||
// mes
|
||||
// .get()
|
||||
// .forEach(
|
||||
// m -> m.getUnit().forEach(u -> measure.add(KeyValue.newInstance(m.getId(), u.getValue()))));
|
||||
// out.setMeasures(measure);
|
||||
// }
|
||||
|
||||
Optional
|
||||
.ofNullable(input.getAuthor())
|
||||
|
|
Loading…
Reference in New Issue