Java Bit String From toBit(byte value, int index)

Here you can find the source of toBit(byte value, int index)

Description

to Bit

License

Apache License

Declaration

private static boolean toBit(byte value, int index) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    private static boolean toBit(byte value, int index) {
        return ((value >>> (7 - index)) & 1) > 0;
    }//from   w  w  w .ja  v  a  2  s  .  co  m
}

Related

  1. toBit(boolean f)
  2. toBitMask(int numBits)
  3. toBits(final byte b)
  4. toBits(int b)
  5. toBits(int b)