Enum AddressFamily

java.lang.Object
java.lang.Enum<AddressFamily>
com.aoapps.net.AddressFamily
All Implemented Interfaces:
Serializable, Comparable<AddressFamily>

@Deprecated public enum AddressFamily extends Enum<AddressFamily>
Deprecated.
Please use StandardProtocolFamily as of Java 1.7.
The supported address families, such as IPv4 and IPv6.
Author:
AO Industries, Inc.
  • Enum Constant Details

  • Method Details

    • values

      public static AddressFamily[] 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

      public static AddressFamily valueOf(String name)
      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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getMaxPrefix

      public int getMaxPrefix()
      Deprecated.
      Gets the maximum size of a prefix for addresses in this family.