public enum ErrorCorrectionLevel extends Enum<ErrorCorrectionLevel>
Enum Constant and Description |
---|
H
Approximately 30% of codewords can be restored.
|
L
Approximately 7% of codewords can be restored.
|
M
Approximately 15% of codewords can be restored.
|
Q
Approximately 25% of codewords can be restored.
|
Modifier and Type | Method and Description |
---|---|
static ErrorCorrectionLevel |
fromChar(char id)
Returns the associated error correction level from the specified character value.
|
static ErrorCorrectionLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCorrectionLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCorrectionLevel L
public static final ErrorCorrectionLevel M
public static final ErrorCorrectionLevel Q
public static final ErrorCorrectionLevel H
public static ErrorCorrectionLevel[] values()
for (ErrorCorrectionLevel c : ErrorCorrectionLevel.values()) System.out.println(c);
public static ErrorCorrectionLevel 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 ErrorCorrectionLevel fromChar(char id)
id
- enumeration character representation.
© 2016 ZIH Corp. All Rights Reserved.