@Test(expected = IllegalArgumentException.class) public void testIllegalArgumentException1() { IpAddressBuilder.getDefaultInstance("badIp"); }
public static IpAddress getDefaultInstance(final String defaultValue) { return IPV4_PATTERN.matcher(defaultValue).matches() ? new IpAddress(new Ipv4Address(defaultValue)) : new IpAddress(new Ipv6Address(defaultValue)); }
IpAddressBuilder { public static IpAddress getDefaultInstance(final String defaultValue) { return IPV4_PATTERN.matcher(defaultValue).matches() ? new IpAddress(new Ipv4Address(defaultValue)) : new IpAddress(new Ipv6Address(defaultValue)); } }
IpAddressBuilder { public static IpAddress getDefaultInstance(final String defaultValue) { return IPV4_PATTERN.matcher(defaultValue).matches() ? new IpAddress(new Ipv4Address(defaultValue)) : new IpAddress(new Ipv6Address(defaultValue)); } private  IpAddressBuilder(); }
IpAddressBuilder { public static IpAddress getDefaultInstance(final String defaultValue) { return IPV4_PATTERN.matcher(defaultValue).matches() ? new IpAddress(new Ipv4Address(defaultValue)) : new IpAddress(new Ipv6Address(defaultValue)); } private  IpAddressBuilder(); static IpAddress getDefaultInstance(final String defaultValue); }
IpAddressBuilder { public static IpAddress getDefaultInstance(final String defaultValue) { return IPV4_PATTERN.matcher(defaultValue).matches() ? new IpAddress(new Ipv4Address(defaultValue)) : new IpAddress(new Ipv6Address(defaultValue)); } private  IpAddressBuilder(); static IpAddress getDefaultInstance(final String defaultValue);  }