public class Bit extends Object
| Constructor and Description |
|---|
Bit() |
| Modifier and Type | Method and Description |
|---|---|
static Boolean |
getBit(byte _byte,
int bitPosition)
Get the value off a bit in the given byte
|
static byte |
setBit(byte _byte,
int bitPosition,
boolean bitValue)
Set a bit in the given byte with the given value
|
public static final byte setBit(byte _byte,
int bitPosition,
boolean bitValue)
_byte - source bytebitPosition - from 0 to 7bitValue - true or falsepublic static final Boolean getBit(byte _byte, int bitPosition)
_byte - source bytebitPosition - from 0 to 7Copyright © 2018. All rights reserved.