@Test public void testToStatements() { RouteMapSetWeight set = new RouteMapSetWeight(10); List<Statement> result = set.toStatements(null, null, null).collect(ImmutableList.toImmutableList()); assertThat(result, equalTo(ImmutableList.of(new SetWeight(new LiteralInt(10))))); }
@Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetWeight(new LiteralInt(_weight))); }
RouteMapSetWeight implements RouteMapSet { @Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetWeight(new LiteralInt(_weight))); } }
RouteMapSetWeight implements RouteMapSet { @Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetWeight(new LiteralInt(_weight))); } RouteMapSetWeight(int weight); }
RouteMapSetWeight implements RouteMapSet { @Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetWeight(new LiteralInt(_weight))); } RouteMapSetWeight(int weight); int getWeight(); @Nonnull @Override Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w); }
RouteMapSetWeight implements RouteMapSet { @Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetWeight(new LiteralInt(_weight))); } RouteMapSetWeight(int weight); int getWeight(); @Nonnull @Override Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w);  }