Android Int Bit Set isBitSet(int number, int count)

Here you can find the source of isBitSet(int number, int count)

Description

is Bit Set

License

Open Source License

Declaration

public static boolean isBitSet(int number, int count) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static boolean isBitSet(int number, int count) {
        return (number & (0x01 << count)) > 0;
    }//from  w  ww .ja va  2  s.  c o m
}

Related

  1. setBit(int number, int count)
  2. setBit(int number, int count, boolean value)
  3. isBitSet(int b, int bit)
  4. isPowerOfTwo(int v)
  5. clearBit(int number, int count)
  6. contains(int bit, int... options)
  7. decode(int bits)