@Test public void testUnionNested() { IpIpSpace a = Ip.parse("1.2.3.4").toIpSpace(); IpIpSpace b = Ip.parse("1.2.3.5").toIpSpace(); IpIpSpace c = Ip.parse("1.2.3.6").toIpSpace(); assertThat(union(a, b, c), equalTo(union(union(a, b), c))); assertThat(union(a, b, c), equalTo(union(a, union(b, c)))); }
public static @Nullable IpSpace union(IpSpace... ipSpaces) { return union(Arrays.asList(ipSpaces)); }
AclIpSpace extends IpSpace { public static @Nullable IpSpace union(IpSpace... ipSpaces) { return union(Arrays.asList(ipSpaces)); } }
AclIpSpace extends IpSpace { public static @Nullable IpSpace union(IpSpace... ipSpaces) { return union(Arrays.asList(ipSpaces)); } @JsonCreator private  AclIpSpace(@Nullable @JsonProperty(PROP_LINES) List<AclIpSpaceLine> lines); }
AclIpSpace extends IpSpace { public static @Nullable IpSpace union(IpSpace... ipSpaces) { return union(Arrays.asList(ipSpaces)); } @JsonCreator private  AclIpSpace(@Nullable @JsonProperty(PROP_LINES) List<AclIpSpaceLine> lines); static Builder builder(); static IpSpace of(Iterable<AclIpSpaceLine> lines); static IpSpace of(AclIpSpaceLine... lines); static @Nullable IpSpace difference(
      @Nullable IpSpace ipSpace1, @Nullable IpSpace ipSpace2); static @Nullable IpSpace intersection(IpSpace... ipSpaces); static @Nullable IpSpace intersection(Iterable<IpSpace> ipSpaces); static Builder permitting(IpSpace... ipSpaces); static Builder permitting(Iterable<IpSpace> ipSpaces); static Builder permitting(Stream<IpSpace> ipSpaces); static Builder rejecting(IpSpace... ipSpaces); static Builder rejecting(Iterable<IpSpace> ipSpaces); static @Nullable IpSpace union(IpSpace... ipSpaces); static @Nullable IpSpace union(Iterable<IpSpace> ipSpaces); @Override R accept(GenericIpSpaceVisitor<R> ipSpaceVisitor); @Nonnull @JsonProperty(PROP_LINES) List<AclIpSpaceLine> getLines(); @Override int hashCode(); @Override String toString(); }
AclIpSpace extends IpSpace { public static @Nullable IpSpace union(IpSpace... ipSpaces) { return union(Arrays.asList(ipSpaces)); } @JsonCreator private  AclIpSpace(@Nullable @JsonProperty(PROP_LINES) List<AclIpSpaceLine> lines); static Builder builder(); static IpSpace of(Iterable<AclIpSpaceLine> lines); static IpSpace of(AclIpSpaceLine... lines); static @Nullable IpSpace difference(
      @Nullable IpSpace ipSpace1, @Nullable IpSpace ipSpace2); static @Nullable IpSpace intersection(IpSpace... ipSpaces); static @Nullable IpSpace intersection(Iterable<IpSpace> ipSpaces); static Builder permitting(IpSpace... ipSpaces); static Builder permitting(Iterable<IpSpace> ipSpaces); static Builder permitting(Stream<IpSpace> ipSpaces); static Builder rejecting(IpSpace... ipSpaces); static Builder rejecting(Iterable<IpSpace> ipSpaces); static @Nullable IpSpace union(IpSpace... ipSpaces); static @Nullable IpSpace union(Iterable<IpSpace> ipSpaces); @Override R accept(GenericIpSpaceVisitor<R> ipSpaceVisitor); @Nonnull @JsonProperty(PROP_LINES) List<AclIpSpaceLine> getLines(); @Override int hashCode(); @Override String toString();  }