@Override public Optional<StatusWithIndices> reduce(List<StatusWithIndex> statuses) { return HighestSeverityAbove.reduceWithHighestSeverityAbove(statuses, Status.INDETERMINATE); }
@Override public String visit(HighestSeverityAbove function) { return String.format("%s (%s)", function.getClass().getSimpleName(), function.getThreshold().getLabel()); }
@Override public ReductionFunction visit(HighestSeverityAboveEntity highestSeverityAboveEntity) { HighestSeverityAbove result = new HighestSeverityAbove(); result.setThreshold(Status.get(highestSeverityAboveEntity.getThreshold())); return result; }
@Override public Void visit(HighestSeverityAbove highestSeverityAbove) { m_thresholdStatusSelect.setValue(highestSeverityAbove.getThreshold()); return null; }
@Override public ReductionFunction visit(HighestSeverityAboveEntity highestSeverityAboveEntity) { HighestSeverityAbove result = new HighestSeverityAbove(); result.setThreshold(Status.get(highestSeverityAboveEntity.getThreshold())); return result; }
@Override public Void visit(HighestSeverityAbove highestSeverityAbove) { m_thresholdStatusSelect.setValue(highestSeverityAbove.getThreshold()); return null; }
@Override public Optional<StatusWithIndices> reduce(List<StatusWithIndex> statuses) { return reduceWithHighestSeverityAbove(statuses, threshold); }
@Override public AbstractReductionFunctionEntity visit(HighestSeverityAbove highestSeverityAbove) { HighestSeverityAboveEntity entity = new HighestSeverityAboveEntity(); entity.setThreshold(highestSeverityAbove.getThreshold().ordinal()); return entity; }
@Override public Optional<StatusWithIndices> reduce(List<StatusWithIndex> statuses) { return HighestSeverityAbove.reduceWithHighestSeverityAbove(statuses, Status.INDETERMINATE); }
@Override public Optional<StatusWithIndices> reduce(List<StatusWithIndex> statuses) { return reduceWithHighestSeverityAbove(statuses, threshold); }