@Test public void testVisitIntegerValueRendering() { assertThat( IntegerValueRendering.instance() .accept(CommunityToRegexInputString.instance(), StandardCommunity.of(1, 1)), equalTo("65537")); assertThat( IntegerValueRendering.instance() .accept(CommunityToRegexInputString.instance(), ExtendedCommunity.of(0, 0L, 0L)), equalTo("0")); assertThat( IntegerValueRendering.instance() .accept(CommunityToRegexInputString.instance(), LargeCommunity.of(0L, 0L, 0L)), equalTo("0")); }
@Override public String visitIntegerValueRendering( IntegerValueRendering integerValueRendering, Community arg) { return arg.accept(INTEGER_VALUE_RENDERER); }
CommunityToRegexInputString implements CommunityRenderingVisitor<String, Community> { @Override public String visitIntegerValueRendering( IntegerValueRendering integerValueRendering, Community arg) { return arg.accept(INTEGER_VALUE_RENDERER); } }
CommunityToRegexInputString implements CommunityRenderingVisitor<String, Community> { @Override public String visitIntegerValueRendering( IntegerValueRendering integerValueRendering, Community arg) { return arg.accept(INTEGER_VALUE_RENDERER); } private  CommunityToRegexInputString(); }
CommunityToRegexInputString implements CommunityRenderingVisitor<String, Community> { @Override public String visitIntegerValueRendering( IntegerValueRendering integerValueRendering, Community arg) { return arg.accept(INTEGER_VALUE_RENDERER); } private  CommunityToRegexInputString(); static @Nonnull CommunityToRegexInputString instance(); @Override String visitColonSeparatedRendering(
      ColonSeparatedRendering colonSeparatedRendering, Community arg); @Override String visitIntegerValueRendering(
      IntegerValueRendering integerValueRendering, Community arg); }
CommunityToRegexInputString implements CommunityRenderingVisitor<String, Community> { @Override public String visitIntegerValueRendering( IntegerValueRendering integerValueRendering, Community arg) { return arg.accept(INTEGER_VALUE_RENDERER); } private  CommunityToRegexInputString(); static @Nonnull CommunityToRegexInputString instance(); @Override String visitColonSeparatedRendering(
      ColonSeparatedRendering colonSeparatedRendering, Community arg); @Override String visitIntegerValueRendering(
      IntegerValueRendering integerValueRendering, Community arg);  }