public enum TcapVersion extends Enum<TcapVersion>
Modifier and Type | Method and 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.
|
public static final TcapVersion _1988
public static final TcapVersion _2000
public static TcapVersion[] values()
for (TcapVersion c : TcapVersion.values()) System.out.println(c);
public static TcapVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static TcapVersion fromConfigProperty(String config) throws IllegalArgumentException
config
- the value provided to 'default-tcap-version' stack configuration propertyIllegalArgumentException
- if the provided value does not correspond to a TcapVersion.public String toString()
toString
in class Enum<TcapVersion>