public enum CardGeneration extends java.lang.Enum<CardGeneration>
Represent the card generation of health card
Version |
Version with 2 digits |
INT Value for Version |
Card generation |
< 3.0.3 |
03.00.03 |
30003 |
G1 |
< 4.0.0 |
04.00.00 |
40000 |
G1P |
>= 4.0.0 |
04.00.00 |
40000 |
G2 |
>= 4.4.0 |
04.04.00 |
40400 |
G2_1 |
Modifier and Type | Method and Description |
---|---|
static CardGeneration |
getCardGeneration(int version)
Return the ENUM for ObjectSystemVersion
|
static CardGeneration |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CardGeneration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CardGeneration G1
public static final CardGeneration G1P
public static final CardGeneration G2
public static final CardGeneration G2_1
public static final CardGeneration UNKNOWN
public static CardGeneration[] values()
for (CardGeneration c : CardGeneration.values()) System.out.println(c);
public static CardGeneration valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CardGeneration getCardGeneration(int version)
Return the ENUM for ObjectSystemVersion
version
- value like 30003, 40000 (for details see class description)