final class FormatInformation extends Object
Encapsulates a QR Code's format information, including the data mask used and error correction level.
ErrorCorrectionLevel| Modifier and Type | Method and Description |
|---|---|
(package private) static FormatInformation | decodeFormatInformation(int maskedFormatInfo1,
int maskedFormatInfo2) |
boolean | equals(Object o)True if the other object has the same error correction level and data mask. |
(package private) byte | getDataMask()Data mask reference decoded from format info bits. |
(package private) ErrorCorrectionLevel | getErrorCorrectionLevel()Error correction level decoded from format info bits. |
int | hashCode()Hash of the error correction level combined with the data mask. |
(package private) static int | numBitsDiffering(int a,
int b) |
static FormatInformation decodeFormatInformation(int maskedFormatInfo1, int maskedFormatInfo2)
maskedFormatInfo1 - format info indicator, with mask still appliedmaskedFormatInfo2 - second copy of same info; both are checked at the same time
to establish best matchnull
if doesn't seem to match any known patternpublic boolean equals(Object o)
byte getDataMask()
ErrorCorrectionLevel getErrorCorrectionLevel()
public int hashCode()
static int numBitsDiffering(int a,
int b)