@Test public void testFromByte() throws Exception { checkFromByte(new boolean[]{true, false, true, false}); checkFromByte(new boolean[]{true, true, true, true, true, true, true, true}); checkFromByte(new boolean[]{true, true, false, true, true, false, true, true}); checkFromByte(new boolean[]{true, true, true, true, true, true, true, false}); }
public static boolean[] fromByte(byte b) { boolean[] values = new boolean[Byte.SIZE]; for (int i = 0; i < values.length; i++) { values[i] = (b & POWERS[i]) != 0; } return values; }
ByteUtil { public static boolean[] fromByte(byte b) { boolean[] values = new boolean[Byte.SIZE]; for (int i = 0; i < values.length; i++) { values[i] = (b & POWERS[i]) != 0; } return values; } }
ByteUtil { public static boolean[] fromByte(byte b) { boolean[] values = new boolean[Byte.SIZE]; for (int i = 0; i < values.length; i++) { values[i] = (b & POWERS[i]) != 0; } return values; } private  ByteUtil(); }
ByteUtil { public static boolean[] fromByte(byte b) { boolean[] values = new boolean[Byte.SIZE]; for (int i = 0; i < values.length; i++) { values[i] = (b & POWERS[i]) != 0; } return values; } private  ByteUtil(); static byte setTrue(final byte number, final int index); static byte setFalse(final byte number, final int index); static boolean isTrue(final byte number, final int index); static boolean isFalse(final byte number, final int index); static byte toByte(boolean... values); static boolean[] fromByte(byte b); static String toBinaryString(final byte number); }
ByteUtil { public static boolean[] fromByte(byte b) { boolean[] values = new boolean[Byte.SIZE]; for (int i = 0; i < values.length; i++) { values[i] = (b & POWERS[i]) != 0; } return values; } private  ByteUtil(); static byte setTrue(final byte number, final int index); static byte setFalse(final byte number, final int index); static boolean isTrue(final byte number, final int index); static boolean isFalse(final byte number, final int index); static byte toByte(boolean... values); static boolean[] fromByte(byte b); static String toBinaryString(final byte number);  }