Enum TcapVersion

    • Method Detail

      • values

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

        public static TcapVersion 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
      • fromConfigProperty

        public static TcapVersion fromConfigProperty​(String config)
                                              throws IllegalArgumentException
        Converts a 'default-tcap-version' stack configuration property String to a TcapVersion.
        Parameters:
        config - the value provided to 'default-tcap-version' stack configuration property
        Returns:
        the TcapVersion that corresponds to the provided value
        Throws:
        IllegalArgumentException - if the provided value does not correspond to a TcapVersion.