java.lang.Object
com.google.zxing.qrcode.decoder.Version.ECB
Enclosing class:
Version

public static final class Version.ECBextends Object

Encapsulates the parameters for one error-correction block in one symbol version. This includes the number of data codewords, and the number of times a block with these parameters is used consecutively in the QR code version's format.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final int
    The number of blocks of the type.
    private final int
    Data codewords per block of the type.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ECB(int count, int dataCodewords)
    Creates one group of identically sized error correction blocks.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    int
    Gets the number of blocks in this group.
    int
    Gets the data codewords carried by each block in this group.

    Methods inherited from class Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • count

      private final int count
      The number of blocks of the type.
    • dataCodewords

      private final int dataCodewords
      Data codewords per block of the type.
  • Constructor Details

    • ECB

      ECB(int count, int dataCodewords)
      Creates one group of identically sized error correction blocks.
      Parameters:
      count - the number of identically sized blocks in this group
      dataCodewords - the number of data codewords carried by each of those blocks
  • Method Details

    • getCount

      public int getCount()
      Gets the number of blocks in this group.
      Returns:
      the number of blocks in this group
    • getDataCodewords

      public int getDataCodewords()
      Gets the data codewords carried by each block in this group.
      Returns:
      the data codewords