public class BitMaskUtil extends Object
| Constructor and Description |
|---|
BitMaskUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isBitOn(Integer maskState,
int mask)
Checks if a particular bit is on or not
|
static Integer |
setMaskOff(Integer maskState,
int mask) |
static Integer |
setMaskOn(Integer maskState,
int mask) |
public static final Integer setMaskOn(Integer maskState, int mask)
maskState - as Integer (Domain object to maintain state), if null will return maskmask - as int (The Mask representing the variable)public static final Integer setMaskOff(Integer maskState, int mask)
maskState - as Integer (Domain object to maintain state), if null will return nullmask - as int (The Mask representing the variable)public static final boolean isBitOn(Integer maskState, int mask)
maskState - as Integer (Domain object to maintain state), if null will return falsemask - as int (The Mask representing the variable)Copyright © 2018. All rights reserved.