public class BitMaskTransformer extends Object
state
this transformer will extract the boolean state for a given input number with the mask
set or set the bit flag.Constructor and Description |
---|
BitMaskTransformer(int mask) |
Modifier and Type | Method and Description |
---|---|
int |
getMask()
A mask with the BIT ON and rest off; for the position bit it represents
|
Boolean |
getState()
Operation state:
null - It will simply fetch the state of the bit as a Boolean result true - It will switch ON the bit in the input and return a Number with the bit ON false - It will switch OFF the bit in the input and return a Number with the bit OFF |
void |
setMask(int mask)
A mask with the BIT ON and rest off; for the position bit it represents
|
void |
setState(Boolean state)
Operation state:
null - It will simply fetch the state of the bit as a Boolean result true - It will switch ON the bit in the input and return a Number with the bit ON false - It will switch OFF the bit in the input and return a Number with the bit OFF |
Object |
transform(Object number) |
public Boolean getState()
public void setState(Boolean state)
public int getMask()
public void setMask(int mask)
Copyright © 2018. All rights reserved.