Top Description Fields Constructors Methods
io.netty.channel.socket

public final Enum InternetProtocolFamily

extends Enum<InternetProtocolFamily>
Class Inheritance
Imports
io.netty.util.NetUtil, java.net.Inet4Address, .Inet6Address, .InetAddress

Internet Protocol (IP) families used byte the DatagramChannel

Field Summary

Modifier and TypeField and Description
private final int
private final Class<? extends InetAddress>
public static final InternetProtocolFamily
public static final InternetProtocolFamily

Constructor Summary

AccessConstructor and Description
private
InternetProtocolFamily(Class<? extends InetAddress> addressType, int addressNumber)

Method Summary

Modifier and TypeMethod and Description
public int
addressNumber()

Returns the address number of the family.

public Class<? extends InetAddress>
addressType()

Returns the address type of this protocol family.

public InetAddress
localhost()

Returns the InetAddress that represent the LOCALHOST for the family.

public static InternetProtocolFamily
of(InetAddress address)

Returns the InternetProtocolFamily for the given InetAddress.

public static InternetProtocolFamily
public static InternetProtocolFamily[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

addressNumberback to summary
private final int addressNumber
addressTypeback to summary
private final Class<? extends InetAddress> addressType
IPv4back to summary
public static final InternetProtocolFamily IPv4
IPv6back to summary
public static final InternetProtocolFamily IPv6

Constructor Detail

InternetProtocolFamilyback to summary
private InternetProtocolFamily(Class<? extends InetAddress> addressType, int addressNumber)

Method Detail

addressNumberback to summary
public int addressNumber()

Returns the address number of the family.

addressTypeback to summary
public Class<? extends InetAddress> addressType()

Returns the address type of this protocol family.

localhostback to summary
public InetAddress localhost()

Returns the InetAddress that represent the LOCALHOST for the family.

ofback to summary
public static InternetProtocolFamily of(InetAddress address)

Returns the InternetProtocolFamily for the given InetAddress.

valueOfback to summary
public static InternetProtocolFamily valueOf(String name)
valuesback to summary
public static InternetProtocolFamily[] values()