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