public enum QRErrorLevel extends java.lang.Enum<QRErrorLevel>
Level of Reed-Solomon error correction. From low to high: LevelL, LevelM, LevelQ, LevelH.
Enum Constant and Description |
---|
LevelH
Allows recovery of 30% of the code text
|
LevelL
Allows recovery of 7% of the code text
|
LevelM
Allows recovery of 15% of the code text
|
LevelQ
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 LevelL
Allows recovery of 7% of the code text
public static final QRErrorLevel LevelM
Allows recovery of 15% of the code text
public static final QRErrorLevel LevelQ
Allows recovery of 25% of the code text
public static final QRErrorLevel LevelH
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()