goja-rapid/src/main/java/goja/rapid/qrcode/QRCodeFormat.java
public QRCodeFormat setErrorCorrectionLevel(char errorCorrectionLevel) {
        switch (Character.toUpperCase(errorCorrectionLevel)) {
            case 'L':
                this.errorCorrectionLevel = ErrorCorrectionLevel.L;
                break;
            case 'M':
                this.errorCorrectionLevel = ErrorCorrectionLevel.M;
                break;
            case 'Q':
                this.errorCorrectionLevel = ErrorCorrectionLevel.Q;
                break;
            case 'H':
                this.errorCorrectionLevel = ErrorCorrectionLevel.H;
                break;
            default:
                this.errorCorrectionLevel = ErrorCorrectionLevel.M;
        }

        return this;
    }
public QRCodeFormat setErrorCorrectionLevel(char errorCorrectionLevel) {
        switch (Character.toUpperCase(errorCorrectionLevel)) {
            case 'L':
                this.errorCorrectionLevel = ErrorCorrectionLevel.L;
                break;
            case 'M':
                this.errorCorrectionLevel = ErrorCorrectionLevel.M;
                break;
            case 'Q':
                this.errorCorrectionLevel = ErrorCorrectionLevel.Q;
                break;
            case 'H':
                this.errorCorrectionLevel = ErrorCorrectionLevel.H;
                break;
            default:
                this.errorCorrectionLevel = ErrorCorrectionLevel.M;
        }

        return this;
    }
public QRCodeFormat setErrorCorrectionLevel ( char errorCorrectionLevel ) { switch ( Character . toUpperCase ( errorCorrectionLevel ) ) { case ' ' : this . errorCorrectionLevel = ErrorCorrectionLevel . L ; break ; case ' ' : this . errorCorrectionLevel = ErrorCorrectionLevel . M ; break ; case ' ' : this . errorCorrectionLevel = ErrorCorrectionLevel . Q ; break ; case ' ' : this . errorCorrectionLevel = ErrorCorrectionLevel . H ; break ; default : this . errorCorrectionLevel = ErrorCorrectionLevel . M ; } return this ; }
设置错误修正等级。其定义如下
<p/>
<ul> <li>L: 有 7% 的内容可被修正</li> <li>M: 有15% 的内容可被修正</li> <li>Q: 有 25% 的内容可被修正</li> <li>H: 有 30%
的内容可被修正</li> </ul>

@param errorCorrectionLevel 错误修正等级
@return QRCode生成器的格式
设置错误修正等级。其定义如下 <p / > <ul > <li > L : 有 7% 的内容可被修正< / li > <li > M : 有15% 的内容可被修正< / li > <li > Q : 有 25% 的内容可被修正< / li > <li > H : 有 30% 的内容可被修正< / li > < / ul >