Enum Record.TYPE

    • Field Detail

      • value

        private final int value
        The value of this DNS record type.
      • INVERSE_LUT

        private static final java.util.HashMap<java.lang.Integer,​Record.TYPE> INVERSE_LUT
        Internal lookup table to map values to types.
    • Constructor Detail

      • TYPE

        private TYPE​(int value)
        Create a new record type.
        Parameters:
        value - The binary value of this type.
    • Method Detail

      • values

        public static Record.TYPE[] 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 (Record.TYPE c : Record.TYPE.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Record.TYPE 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
      • getValue

        public int getValue()
        Retrieve the binary value of this type.
        Returns:
        The binary value.
      • getType

        public static Record.TYPE getType​(int value)
        Retrieve the symbolic type of the binary value.
        Parameters:
        value - The binary type value.
        Returns:
        The symbolic tpye.