Enum IPv4Type

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<IPv4Type>

    public enum IPv4Type
    extends java.lang.Enum<IPv4Type>
    • Enum Constant Detail

      • CLASS_A

        public static final IPv4Type CLASS_A
      • CLASS_A_LOOPBACK

        public static final IPv4Type CLASS_A_LOOPBACK
      • CLASS_A_PRIVATE

        public static final IPv4Type CLASS_A_PRIVATE
      • CLASS_A_NONPRIVATE

        public static final IPv4Type CLASS_A_NONPRIVATE
      • CLASS_B

        public static final IPv4Type CLASS_B
      • CLASS_B_PRIVATE

        public static final IPv4Type CLASS_B_PRIVATE
      • CLASS_B_NONPRIVATE

        public static final IPv4Type CLASS_B_NONPRIVATE
      • CLASS_C

        public static final IPv4Type CLASS_C
      • CLASS_C_PRIVATE

        public static final IPv4Type CLASS_C_PRIVATE
      • CLASS_C_NONPRIVATE

        public static final IPv4Type CLASS_C_NONPRIVATE
      • CLASS_D

        public static final IPv4Type CLASS_D
      • CLASS_E

        public static final IPv4Type CLASS_E
      • NO_CONSTRAINT

        public static final IPv4Type NO_CONSTRAINT
    • Method Detail

      • values

        public static IPv4Type[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (IPv4Type c : IPv4Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static IPv4Type valueOf​(java.lang.String name)
        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 name
        java.lang.NullPointerException - if the argument is null
      • getOctets

        public Range<java.lang.Integer>[] getOctets()
      • isPrivateAllowed

        public boolean isPrivateAllowed()