Package com.intellij.util
Class BitUtil
java.lang.Object
com.intellij.util.BitUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidassertOneBitMask(int mask) static byteclear(byte value, byte mask) static intclear(int value, int mask) static longclear(long value, long mask) static booleanisSet(byte value, byte mask) static booleanisSet(int value, int mask) static booleanisSet(long flags, long mask) static byteset(byte value, byte mask, boolean setBit) static intset(int value, int mask, boolean setBit) static longset(long value, long mask, boolean setBit)
-
Constructor Details
-
BitUtil
public BitUtil()
-
-
Method Details
-
isSet
public static boolean isSet(byte value, byte mask) -
isSet
public static boolean isSet(int value, int mask) -
isSet
public static boolean isSet(long flags, long mask) -
set
public static byte set(byte value, byte mask, boolean setBit) -
set
public static int set(int value, int mask, boolean setBit) -
set
public static long set(long value, long mask, boolean setBit) -
clear
public static byte clear(byte value, byte mask) -
clear
public static int clear(int value, int mask) -
clear
public static long clear(long value, long mask) -
assertOneBitMask
public static void assertOneBitMask(int mask)
-