@Test public void testAclIpSpace() { IpSpace input = AclIpSpace.builder() .thenPermitting(IP_IP_SPACE) .thenRejecting(PREFIX_IP_SPACE) .thenPermitting(FOO_REFERENCE) .thenRejecting(IP_WILDCARD_IP_SPACE) .thenPermitting(IP_WILDCARD_SET_IP_SPACE) .build(); IpSpace output = AclIpSpace.builder() .thenPermitting(IP_IP_SPACE) .thenRejecting(PREFIX_IP_SPACE) .thenPermitting(BAR_REFERENCE) .thenRejecting(IP_WILDCARD_IP_SPACE) .thenPermitting(IP_WILDCARD_SET_IP_SPACE) .build(); assertThat(RENAMER.apply(input), equalTo(output)); }
@Override public IpSpace apply(@Nonnull IpSpace ipSpace) { return _visitor.visit(ipSpace); }
IpSpaceRenamer implements Function<IpSpace, IpSpace> { @Override public IpSpace apply(@Nonnull IpSpace ipSpace) { return _visitor.visit(ipSpace); } }
IpSpaceRenamer implements Function<IpSpace, IpSpace> { @Override public IpSpace apply(@Nonnull IpSpace ipSpace) { return _visitor.visit(ipSpace); } IpSpaceRenamer(Function<String, String> renamer); }
IpSpaceRenamer implements Function<IpSpace, IpSpace> { @Override public IpSpace apply(@Nonnull IpSpace ipSpace) { return _visitor.visit(ipSpace); } IpSpaceRenamer(Function<String, String> renamer); @Override IpSpace apply(@Nonnull IpSpace ipSpace); }
IpSpaceRenamer implements Function<IpSpace, IpSpace> { @Override public IpSpace apply(@Nonnull IpSpace ipSpace) { return _visitor.visit(ipSpace); } IpSpaceRenamer(Function<String, String> renamer); @Override IpSpace apply(@Nonnull IpSpace ipSpace);  }