Enum InternetProtocolFamily
java.lang.Object
java.lang.Enum<InternetProtocolFamily>
io.netty.channel.socket.InternetProtocolFamily
- All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<InternetProtocolFamily>
Deprecated.
Internet Protocol (IP) families used by the
DatagramChannel-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intDeprecated.private final java.lang.Class<? extends java.net.InetAddress> Deprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInternetProtocolFamily(java.lang.Class<? extends java.net.InetAddress> addressType, int addressNumber) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.Returns the address number of the family.java.lang.Class<? extends java.net.InetAddress> Deprecated.Returns the address type of this protocol family.java.net.InetAddressDeprecated.Returns theInetAddressthat represent theLOCALHOSTfor the family.static InternetProtocolFamilyof(java.net.InetAddress address) Deprecated.Returns theInternetProtocolFamilyfor the givenInetAddress.Deprecated.static InternetProtocolFamilyvalueOf(java.lang.String name) Deprecated.Returns the enum constant of this type with the specified name.static InternetProtocolFamily[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
IPv4
Deprecated. -
IPv6
Deprecated.
-
-
Field Details
-
addressType
private final java.lang.Class<? extends java.net.InetAddress> addressTypeDeprecated. -
addressNumber
private final int addressNumberDeprecated.
-
-
Constructor Details
-
InternetProtocolFamily
private InternetProtocolFamily(java.lang.Class<? extends java.net.InetAddress> addressType, int addressNumber) Deprecated.
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
addressType
public java.lang.Class<? extends java.net.InetAddress> addressType()Deprecated.Returns the address type of this protocol family. -
addressNumber
-
localhost
public java.net.InetAddress localhost()Deprecated.Returns theInetAddressthat represent theLOCALHOSTfor the family. -
of
Deprecated.Returns theInternetProtocolFamilyfor the givenInetAddress. -
toSocketProtocolFamily
Deprecated.
-
SocketProtocolFamily.