Code example for InetAddress

Methods: hashCode

0
		return address.equals(that.address);
	} 
 
	public int hashCode() 
	{ 
		return address.hashCode();
	} 
 
	@NotNull 
	public static <A extends InetAddress> SerializableInternetProtocolAddress<A> serializableInternetProtocolAddress(final @NotNull A address)
	{ 
		return new SerializableInternetProtocolAddress<A>(address);
	} 
 
	@NotNull 
	public static SerializableInternetProtocolAddress<Inet4Address> serializableInternetProtocolVersion4Address(final @NotNull String dottedString)
	{ 
		final String[] parts = dottedString.split("\\.");
		if (parts.length != 4)
		{ 
			throw new IllegalArgumentException(format(UK, "%1$s is not a valid Internet Protocol version 4 dotted address string of four parts", dottedString));