@Test public void testToStatements() { RouteMapSetMetric set = new RouteMapSetMetric(new LiteralLong(10)); List<Statement> result = set.toStatements(null, null, null).collect(ImmutableList.toImmutableList()); assertThat(result, equalTo(ImmutableList.of(new SetMetric(new LiteralLong(10L))))); }
@Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetMetric(_metric)); }
RouteMapSetMetric implements RouteMapSet { @Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetMetric(_metric)); } }
RouteMapSetMetric implements RouteMapSet { @Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetMetric(_metric)); } RouteMapSetMetric(LongExpr metric); }
RouteMapSetMetric implements RouteMapSet { @Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetMetric(_metric)); } RouteMapSetMetric(LongExpr metric); LongExpr getMetric(); @Nonnull @Override Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w); }
RouteMapSetMetric implements RouteMapSet { @Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetMetric(_metric)); } RouteMapSetMetric(LongExpr metric); LongExpr getMetric(); @Nonnull @Override Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w);  }