Class BitMap<T>

java.lang.Object
org.apache.zookeeper.server.util.BitMap<T>

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

    • BitMap

      public BitMap()
  • Method Details

    • add

      public Integer add(T value)
    • get

      public T get(int bit)
    • getBit

      public Integer getBit(T value)
    • remove

      public int remove(T value)
    • remove

      public T remove(int bit)
    • size

      public int size()