Enum DtlsControl.Setup

    • Method Detail

      • values

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

        public static DtlsControl.Setup valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • parseSetup

        public static DtlsControl.Setup parseSetup​(String s)
        Parses a String into a Setup enum value. The specified String to parse must be in a format as produced by toString(); otherwise, the method will throw an exception.
        Parameters:
        s - the String to parse into a Setup enum value
        Returns:
        a Setup enum value on which toString() produces the specified s
        Throws:
        IllegalArgumentException - if none of the Setup enum values produce the specified s when toString() is invoked on them
        NullPointerException - if s is null