Java Bit Get bitAt(int offset, byte aByte)

Here you can find the source of bitAt(int offset, byte aByte)

Description

bit At

License

Apache License

Declaration

public static boolean bitAt(int offset, byte aByte) 

Method Source Code

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

public class Main {
    public static boolean bitAt(int offset, byte aByte) {
        return (aByte & (1 << offset)) != 0;
    }//from  w  ww  . j av  a 2 s  .  c om
}

Related

  1. bitAt(byte b, int pos)
  2. bitAt(int offset, byte aByte)
  3. bits(int i)
  4. bits(int i)
  5. bits(int n, int offset, int length)
  6. bits(int value, int c)