Package xyz.cofe.cxel.eval.op
Class BitOperations
java.lang.Object
xyz.cofe.cxel.eval.op.BitOperations
public class BitOperations
extends java.lang.Object
Операции над битами
-
Constructor Summary
Constructors Constructor Description BitOperations() -
Method Summary
Modifier and Type Method Description static longand(long a, long b)static longbitNot(long a)static longleftShift(long a, int b)static longor(long a, long b)static longrightShift(long a, int b)static longrrightShift(long a, int b)static longxor(long a, long b)
-
Constructor Details
-
BitOperations
public BitOperations()
-
-
Method Details
-
or
public static long or(long a, long b) -
and
public static long and(long a, long b) -
xor
public static long xor(long a, long b) -
leftShift
public static long leftShift(long a, int b) -
rightShift
public static long rightShift(long a, int b) -
rrightShift
public static long rrightShift(long a, int b) -
bitNot
public static long bitNot(long a)
-