src/main/java/com/stijndepestel/geminio/captures/SerialPortCapture.java
/**
     * Unbox the byte array into a primitive type array.
     *
     * @param arr
     *            The array of the wrapper types.
     * @return The array of the primitive types.
     */
Unbox the byte array into a primitive type array.
@param arr
The array of the wrapper types.
@return The array of the primitive types.
Unbox the byte array into a primitive type array . @param arr The array of the wrapper types . @return The array of the primitive types .
private static byte[] unboxByteArray(final Byte[] arr) {
        final byte[] unboxedBytes = new byte[arr.length];
        for (int i = 0; i < arr.length; i++) {
            unboxedBytes[i] = arr[i].byteValue();
        }
        return unboxedBytes;
    }
private static byte [ ] unboxByteArray ( final Byte [ ] arr ) { final byte [ ] unboxedBytes = new byte [ arr . length ] ; for ( int i = 0 ; i < arr . length ; i ++ ) { unboxedBytes [ i ] = arr [ i ] . byteValue ( ) ; } return unboxedBytes ; }
Unbox the byte array into a primitive type array.
Unbox the byte array into a primitive type array .