Enum TcapVersion
- java.lang.Object
-
- java.lang.Enum<TcapVersion>
-
- TcapVersion
-
- All Implemented Interfaces:
Serializable
,Comparable<TcapVersion>
public enum TcapVersion extends Enum<TcapVersion>
Enumeration of TCAP versions.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TcapVersion
fromConfigProperty(String config)
Converts a 'default-tcap-version' stack configuration property String to a TcapVersion.String
toString()
static TcapVersion
valueOf(String name)
Returns the enum constant of this type with the specified name.static TcapVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
_1988
public static final TcapVersion _1988
-
_2000
public static final TcapVersion _2000
-
-
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 nameNullPointerException
- 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.
-
toString
public String toString()
- Overrides:
toString
in classEnum<TcapVersion>
-
-