Java Bit Set setBit(byte target, byte pos)

Here you can find the source of setBit(byte target, byte pos)

Description

set Bit

License

Open Source License

Declaration

private static byte setBit(byte target, byte pos) 

Method Source Code

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

public class Main {
    private static byte setBit(byte target, byte pos) {
        return target |= (1 << pos);
    }/*from w w w . j a v  a2s  .  c o m*/
}

Related

  1. setBit(byte data, int bitPos, boolean on)
  2. setBit(byte data, int pos, int val)
  3. setBit(byte in, int position, boolean value)
  4. setBit(byte input, int bit)
  5. setBit(byte original, int bitToSet)
  6. setBit(byte v, int position, boolean value)
  7. setBit(byte value, int bit, boolean on)
  8. setBit(byte value, int bit, boolean state)
  9. setBit(byte value, int bit, boolean state)