src/main/java/com/osiris/maths/binary/Bits.java
/**
     * Converts the provided string to bits. <br>
     * Expects an string looking something like this: <br>
     * 0101010000111010101 etc... <br>
     * Expects bit order MSB -> LSB.
     */
Converts the provided string to bits. 
Expects an string looking something like this: 
0101010000111010101 etc... 
Expects bit order MSB -> LSB.
Converts the provided string to bits . Expects an string looking something like this : 0101010000111010101 etc ... Expects bit order MSB - > LSB .
public static Bits from(String bits) {
        String s = bits;
        List<Bit> actualBits = new ArrayList<>();
        for (int i = s.length() - 1; i >= 0; i--) {
            if (s.charAt(i) == '1') actualBits.add(new Bit(true));
            else actualBits.add(new Bit(false));
        }
        return new Bits(actualBits, null, null);
    }
public static Bits from ( String bits ) { String s = bits ; List < Bit > actualBits = new ArrayList < > ( ) ; for ( int i = s . length ( ) - 1 ; i >= 0 ; i -- ) { if ( s . charAt ( i ) == '1' ) actualBits . add ( new Bit ( true ) ) ; else actualBits . add ( new Bit ( false ) ) ; } return new Bits ( actualBits , null , null ) ; }
Converts the provided string to bits.
Converts the provided string to bits .