|
SynSoft Java Standard Library |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.synsoft.base.logic.Bits
This class provides a number of simple bit manipulation utility functions.
Field Summary | |
static Version |
scm_version
Constant instance of version information for class. |
Method Summary | |
static int |
addBits(int value,
int add)
Adds bits to a value |
static boolean |
areAllBitsSet(int value,
int flags)
Returns true iff all bits stipulated in flags are set in value. |
static boolean |
areAnyBitsSet(int value,
int flags)
Returns true if any bits stipulated in flags are set in value. |
static int |
modifyBits(int value,
int remove,
int add)
Modifies the bits in a value |
static int |
removeBits(int value,
int remove)
Removes bits in a value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Version scm_version
Method Detail |
public static final boolean areAllBitsSet(int value, int flags)
value
- The value against which to test the flagsflags
- The flag(s) with which to test the valuepublic static final boolean areAnyBitsSet(int value, int flags)
value
- The value against which to test the flagsflags
- The flag(s) with which to test the valuepublic static final int modifyBits(int value, int remove, int add)
value
- The value to modifyremove
- The bit values to remove from valueadd
- The bit values to add to valuepublic static final int removeBits(int value, int remove)
value
- The value to modifyremove
- The bit values to remove from valuepublic static final int addBits(int value, int add)
value
- The value to modifyadd
- The bit values to add to value
|
version 2.0.1.231 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |