@Test public void testToStatements() { RouteMapSetIpNextHopLiteral set = new RouteMapSetIpNextHopLiteral(IP); ImmutableList<Statement> result = set.toStatements(null, null, null).collect(ImmutableList.toImmutableList()); assertThat( result, equalTo(ImmutableList.of(new SetNextHop(new IpNextHop(ImmutableList.of(IP)))))); }
@Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetNextHop(new IpNextHop(ImmutableList.of(_nextHop)))); }
RouteMapSetIpNextHopLiteral implements RouteMapSet { @Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetNextHop(new IpNextHop(ImmutableList.of(_nextHop)))); } }
RouteMapSetIpNextHopLiteral implements RouteMapSet { @Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetNextHop(new IpNextHop(ImmutableList.of(_nextHop)))); } RouteMapSetIpNextHopLiteral(Ip nextHop); }
RouteMapSetIpNextHopLiteral implements RouteMapSet { @Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetNextHop(new IpNextHop(ImmutableList.of(_nextHop)))); } RouteMapSetIpNextHopLiteral(Ip nextHop); @Nonnull Ip getNextHop(); @Nonnull @Override Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w); }
RouteMapSetIpNextHopLiteral implements RouteMapSet { @Nonnull @Override public Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w) { return Stream.of(new SetNextHop(new IpNextHop(ImmutableList.of(_nextHop)))); } RouteMapSetIpNextHopLiteral(Ip nextHop); @Nonnull Ip getNextHop(); @Nonnull @Override Stream<Statement> toStatements(Configuration c, CumulusNodeConfiguration vc, Warnings w);  }