BitMap (Apache ZooKeeper - Server 3.7.0 API)
Date: 2021-03-17

org.apache.zookeeper.server.util

## 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 Summary

    Constructors
    Constructor and Description
    `BitMap()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Integer` | `add(T value)`
    `T` | `get(int bit)`
    `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 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()

Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.