public enum MtCategory extends Enum<MtCategory>
Modifier and Type | Method and Description |
---|---|
String |
description()
Returns the service number and description, for example:
01 - GPA/FIN Message (system and user-to-user)
|
String |
number()
Returns this service id type number
|
static MtCategory |
valueOf(int cat)
Convenient factory method to create a category enum value from an int
|
static MtCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MtCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MtCategory _0
public static final MtCategory _1
public static final MtCategory _2
public static final MtCategory _3
public static final MtCategory _4
public static final MtCategory _5
public static final MtCategory _6
public static final MtCategory _7
public static final MtCategory _8
public static final MtCategory _9
public static MtCategory[] values()
for (MtCategory c : MtCategory.values()) System.out.println(c);
public static MtCategory 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 final MtCategory valueOf(int cat)
cat
- a category number between 0 and 9null
if the parameter in is not a valid category numberpublic final String description()
public final String number()