Class BitUtils


  • public class BitUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      BitUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isBitSet​(byte b, int pos)  
      static byte setBit​(byte b, int pos)  
      static byte unsetBit​(byte b, int pos)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BitUtils

        public BitUtils()
    • Method Detail

      • isBitSet

        public static boolean isBitSet​(byte b,
                                       int pos)
      • setBit

        public static byte setBit​(byte b,
                                  int pos)
      • unsetBit

        public static byte unsetBit​(byte b,
                                    int pos)