public enum ErrorCorrectionLevel extends java.lang.Enum<ErrorCorrectionLevel>
See ISO 18004:2006, 6.5.1. This enum encapsulates the four error correction levels defined by the QR code standard.
列挙型定数 | 説明 |
---|---|
H |
H = ~30% correction
|
L |
L = ~7% correction
|
M |
M = ~15% correction
|
Q |
Q = ~25% correction
|
修飾子とタイプ | メソッド | 説明 |
---|---|---|
static ErrorCorrectionLevel |
forBits(int bits) |
|
int |
getBits() |
|
static ErrorCorrectionLevel |
valueOf(java.lang.String name) |
指定した名前を持つこの型の列挙型定数を返します。
文字列は、この型の列挙型定数を宣言するのに使用した識別子と正確に
一致している必要があります。(余分な空白文字を含めることは
できません。)
|
static ErrorCorrectionLevel[] |
values() |
この列挙型の定数を含む配列を宣言されている順序で返します。
このメソッドは次のようにして定数を反復するために
使用できます:
for (ErrorCorrectionLevel c : ErrorCorrectionLevel.values()) System.out.println(c); |
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(java.lang.String name)
name
- 返される列挙型定数の名前。java.lang.IllegalArgumentException
- この列挙型に、指定した名前の定数がない場合java.lang.NullPointerException
- 引数がnullの場合public int getBits()
public static ErrorCorrectionLevel forBits(int bits)
bits
- int containing the two bits encoding a QR Code's error correction level