@Test public void testVisitColonSeparatedRendering() { assertThat( ColonSeparatedRendering.instance() .accept(CommunityToRegexInputString.instance(), StandardCommunity.of(1, 1)), equalTo("1:1")); assertThat( ColonSeparatedRendering.instance() .accept(CommunityToRegexInputString.instance(), ExtendedCommunity.of(0, 0L, 0L)), equalTo("")); assertThat( ColonSeparatedRendering.instance() .accept(CommunityToRegexInputString.instance(), LargeCommunity.of(0L, 0L, 0L)), equalTo("0:0:0")); }
@Override public String visitColonSeparatedRendering( ColonSeparatedRendering colonSeparatedRendering, Community arg) { return arg.accept(COLON_SEPARATED_RENDERER); }
CommunityToRegexInputString implements CommunityRenderingVisitor<String, Community> { @Override public String visitColonSeparatedRendering( ColonSeparatedRendering colonSeparatedRendering, Community arg) { return arg.accept(COLON_SEPARATED_RENDERER); } }
CommunityToRegexInputString implements CommunityRenderingVisitor<String, Community> { @Override public String visitColonSeparatedRendering( ColonSeparatedRendering colonSeparatedRendering, Community arg) { return arg.accept(COLON_SEPARATED_RENDERER); } private  CommunityToRegexInputString(); }
CommunityToRegexInputString implements CommunityRenderingVisitor<String, Community> { @Override public String visitColonSeparatedRendering( ColonSeparatedRendering colonSeparatedRendering, Community arg) { return arg.accept(COLON_SEPARATED_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 visitColonSeparatedRendering( ColonSeparatedRendering colonSeparatedRendering, Community arg) { return arg.accept(COLON_SEPARATED_RENDERER); } private  CommunityToRegexInputString(); static @Nonnull CommunityToRegexInputString instance(); @Override String visitColonSeparatedRendering(
      ColonSeparatedRendering colonSeparatedRendering, Community arg); @Override String visitIntegerValueRendering(
      IntegerValueRendering integerValueRendering, Community arg);  }