public enum InternetProtocolFamily2 extends java.lang.Enum<InternetProtocolFamily2>
DatagramChannel| Modifier and Type | Method and Description |
|---|---|
int |
addressNumber()
Returns the
address number
of the family.
|
java.lang.Class<? extends java.net.InetAddress> |
addressType()
Returns the address type of this protocol family.
|
java.net.InetAddress |
localhost()
Returns the
InetAddress that represent the LOCALHOST for the family. |
static InternetProtocolFamily2 |
of(java.net.InetAddress address)
Returns the
InternetProtocolFamily for the given InetAddress. |
static InternetProtocolFamily2 |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static InternetProtocolFamily2[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InternetProtocolFamily2 IPv4
public static final InternetProtocolFamily2 IPv6
public static InternetProtocolFamily2[] values()
for (InternetProtocolFamily2 c : InternetProtocolFamily2.values()) System.out.println(c);
public static InternetProtocolFamily2 valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.Class<? extends java.net.InetAddress> addressType()
public int addressNumber()
public java.net.InetAddress localhost()
InetAddress that represent the LOCALHOST for the family.public static InternetProtocolFamily2 of(java.net.InetAddress address)
InternetProtocolFamily for the given InetAddress.Copyright © 2018. All Rights Reserved.