Android Bit Set bitwiseNot(int number)

Here you can find the source of bitwiseNot(int number)

Description

bitwiseNot

License

Open Source License

Parameter

Parameter Description
number a parameter

Declaration

public static int bitwiseNot(int number) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from w w  w  .j  a  v  a 2s .co  m*/
     * bitwiseNot
     * @param number
     * @return
     */
    public static int bitwiseNot(int number) {
        int ret = ~number;
        return ret & 0x0000FFFF;
    }
}

Related

  1. setBit(byte bits, int offset, boolean status)
  2. resetBit(byte b, int bit)
  3. setBit(byte[] arr, int bit)
  4. setBit(byte[] bytes, int bitNr, int bit)
  5. reverseBits(byte[] bits)
  6. xor(byte[]... arrays)
  7. xorArray(byte[] array, byte[] mask)