public final class Bitwise extends Object
| Constructor and Description |
|---|
Bitwise(int initialValue) |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
boolean |
isFalse(int pos) |
boolean |
isTrue(int pos) |
Bitwise |
setFalse(int bitwise)
Applies the int value using bitwise &~ (NOR)
This method is synchronized to allow deterministic, concurrent access.
|
Bitwise |
setTrue(int bitwise)
Applies the int value using bitwise |
This method is synchronized to allow deterministic, concurrent access.
|
void |
setValue(int value)
This is the fastest way to set a value, as it is not synchronized.
|
public boolean isTrue(int pos)
public boolean isFalse(int pos)
public Bitwise setTrue(int bitwise)
bitwise - - Binary flags to set to true.public Bitwise setFalse(int bitwise)
bitwise - - Binary flags to set to true.public int getValue()
public void setValue(int value)
value - - The new value to use.Copyright © 2012-2013 The Internet Party. All Rights Reserved.