static forBits(bits /*int*/) {
        const mode = Mode.FOR_BITS.get(bits);
        if (undefined === mode) {
            throw new IllegalArgumentException();
        }
        return mode;
    }
/**
     * @param bits four bits encoding a QR Code data mode
     * @return Mode encoded by these bits
     * @throws IllegalArgumentException if bits do not correspond to a known mode
     */
@param bits four bits encoding a QR Code data mode
@return Mode encoded by these bits
@throws IllegalArgumentException if bits do not correspond to a known mode
@param bits four bits encoding a QR Code data mode @return Mode encoded by these bits @throws IllegalArgumentException if bits do not correspond to a known mode
static forBits(bits ) {
        const mode = Mode.FOR_BITS.get(bits);
        if (undefined === mode) {
            throw new IllegalArgumentException();
        }
        return mode;
    }
static forBits ( bits ) { const mode = Mode . FOR_BITS . get ( bits ) ; if ( undefined === mode ) { throw new IllegalArgumentException ( ) ; } return mode ; }
@param bits four bits encoding a QR Code data mode
 @return Mode encoded by these bits
 @throws IllegalArgumentException if bits do not correspond to a known mode
@param bits four bits encoding a QR Code data mode @return Mode encoded by these bits @throws IllegalArgumentException if bits do not correspond to a known mode
/*int*/