mirror of
https://github.com/status-im/QR-Code-generator.git
synced 2026-08-31 01:31:10 +00:00
Tweaked comments about inclusive ranges so that the word is consistently parenthesized.
This commit is contained in:
@@ -180,7 +180,7 @@ public final class QrCode {
|
||||
public final int version;
|
||||
|
||||
/** The width and height of this QR Code symbol, measured in modules.
|
||||
* Always equal to version × 4 + 17, in the range 21 to 177. */
|
||||
* Always equal to version × 4 + 17, in the range 21 to 177 (inclusive). */
|
||||
public final int size;
|
||||
|
||||
/** The error correction level used in this QR Code symbol. Never {@code null}. */
|
||||
@@ -203,7 +203,7 @@ public final class QrCode {
|
||||
* Constructs a QR Code symbol with the specified version number, error correction level, binary data array, and mask number.
|
||||
* <p>This is a cumbersome low-level constructor that should not be invoked directly by the user.
|
||||
* To go one level up, see the {@link #encodeSegments(List,Ecc,int,int,int,boolean)} function.</p>
|
||||
* @param ver the version number to use, which must be in the range 1 to 40, inclusive
|
||||
* @param ver the version number to use, which must be in the range 1 to 40 (inclusive)
|
||||
* @param ecl the error correction level to use
|
||||
* @param dataCodewords the bytes representing segments to encode (without ECC)
|
||||
* @param mask the mask pattern to use, which is either −1 for automatic choice or from 0 to 7 for fixed choice
|
||||
@@ -782,7 +782,7 @@ public final class QrCode {
|
||||
/**
|
||||
* Constructs a Reed-Solomon ECC generator for the specified degree. This could be implemented
|
||||
* as a lookup table over all possible parameter values, instead of as an algorithm.
|
||||
* @param degree the divisor polynomial degree, which must be between 1 and 255
|
||||
* @param degree the divisor polynomial degree, which must be between 1 and 255 (inclusive)
|
||||
* @throws IllegalArgumentException if degree < 1 or degree > 255
|
||||
*/
|
||||
public ReedSolomonGenerator(int degree) {
|
||||
|
||||
@@ -268,8 +268,8 @@ public final class QrSegment {
|
||||
|
||||
/**
|
||||
* Returns the bit width of the segment character count field for this mode object at the specified version number.
|
||||
* @param ver the version number, which is between 1 to 40, inclusive
|
||||
* @return the number of bits for the character count, which is between 8 to 16, inclusive
|
||||
* @param ver the version number, which is between 1 to 40 (inclusive)
|
||||
* @return the number of bits for the character count, which is between 8 to 16 (inclusive)
|
||||
* @throws IllegalArgumentException if the version number is out of range
|
||||
*/
|
||||
int numCharCountBits(int ver) {
|
||||
|
||||
Reference in New Issue
Block a user