Class BitMap<T>


  • public class BitMap<T>
    extends java.lang.Object
    This is a helper class to maintain the bit to specific value and the reversed value to bit mapping.
    • Constructor Summary

      Constructors 
      Constructor Description
      BitMap()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer add​(T value)  
      T get​(int bit)  
      java.lang.Integer getBit​(T value)  
      T remove​(int bit)  
      int remove​(T value)  
      int size()  
      • Methods inherited from class java.lang.Object

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

      • BitMap

        public BitMap()
    • Method Detail

      • add

        public java.lang.Integer add​(T value)
      • get

        public T get​(int bit)
      • getBit

        public java.lang.Integer getBit​(T value)
      • remove

        public int remove​(T value)
      • remove

        public T remove​(int bit)
      • size

        public int size()