@Override public NetworkAddress next() { int hostPart = (int) (counter.incrementAndGet() % finalMask); String nextIp = nextIpAddress(networkAddressPrefix, hostPart, finalParts); String nextHostName = hostNameFrom(hostDomain, nextIp); return aNetworkAddress() .withHostName(nextHostName) .withIpAddress(nextIp) .withLabel(label) .withProtocolType(ProtocolType.IPv4) .build(); }
@Override public NetworkAddressBuilder builder() { return aNetworkAddress() .withHostName("test.public.host") .withIpAddress("11.11.0.1") .withProtocolType(ProtocolType.IPv4); } },
@Override public NetworkAddressBuilder builder() { return aNetworkAddress() .withHostName("test.private.host") .withIpAddress("192.168.0.1") .withProtocolType(ProtocolType.IPv4); } };