@Test public void testOneLineRepresentationForEmptyPredictions() { JobRuntimePredictions predictions = new JobRuntimePredictions("1", "some-id", new TreeSet<>()); assertThat(predictions.toSimpleString()).isEmpty(); }
public Optional<String> toSimpleString() { return simpleStringRepresentation; }
JobRuntimePredictions { public Optional<String> toSimpleString() { return simpleStringRepresentation; } }
JobRuntimePredictions { public Optional<String> toSimpleString() { return simpleStringRepresentation; } JobRuntimePredictions(String version, String modelId, SortedSet<JobRuntimePrediction> predictions); }
JobRuntimePredictions { public Optional<String> toSimpleString() { return simpleStringRepresentation; } JobRuntimePredictions(String version, String modelId, SortedSet<JobRuntimePrediction> predictions); String getVersion(); String getModelId(); SortedSet<JobRuntimePrediction> getPredictions(); Optional<String> toSimpleString(); @Override String toString(); }
JobRuntimePredictions { public Optional<String> toSimpleString() { return simpleStringRepresentation; } JobRuntimePredictions(String version, String modelId, SortedSet<JobRuntimePrediction> predictions); String getVersion(); String getModelId(); SortedSet<JobRuntimePrediction> getPredictions(); Optional<String> toSimpleString(); @Override String toString();  }