public enum HanXinErrorLevel extends java.lang.Enum<HanXinErrorLevel>
Level of Reed-Solomon error correction. From low to high: L1, L2, L3, L4.
Enum Constant and Description |
---|
L1
Allows recovery of 8% of the code text
|
L2
Allows recovery of 15% of the code text
|
L3
Allows recovery of 23% of the code text
|
L4
Allows recovery of 30% of the code text
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static HanXinErrorLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HanXinErrorLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HanXinErrorLevel L1
Allows recovery of 8% of the code text
public static final HanXinErrorLevel L2
Allows recovery of 15% of the code text
public static final HanXinErrorLevel L3
Allows recovery of 23% of the code text
public static final HanXinErrorLevel L4
Allows recovery of 30% of the code text
public static HanXinErrorLevel[] values()
for (HanXinErrorLevel c : HanXinErrorLevel.values()) System.out.println(c);
public static HanXinErrorLevel 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 int getValue()