|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- public interface Bitwise<T>
Bitwise operations.
Method Summary | |
---|---|
T |
addBitmask(T bitmask)
Sets the bits in the given bitmask. |
T |
and(T number)
Logical and. |
boolean |
hasBitmask(T bitmask)
Determines if this number has the given bitmask. |
T |
not()
Logical not. |
T |
or(T number)
Logical or. |
T |
removeBitmask(T bitmask)
Unsets the bits in the given bitmask. |
T |
xor(T number)
Logical xor. |
Method Detail |
---|
T and(T number)
number
-
T or(T number)
number
-
T xor(T number)
number
-
T not()
boolean hasBitmask(T bitmask)
bitmask
-
true
if the number has the bitmask; false
otherwiseT addBitmask(T bitmask)
bitmask
-
T removeBitmask(T bitmask)
bitmask
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |