类 SparseBitSet


  • public class SparseBitSet
    extends Object
    A sparse bit set implementation inspired by Drs. Haddon and Lemire. Ported from joinery https://github.com/brettwooldridge/SparseBitSet/blob/master/SparseBitSet.pdf http://lemire.me/blog/archives/2012/11/13/fast-sets-of-integers/
    • 构造器详细资料

      • SparseBitSet

        public SparseBitSet()
    • 方法详细资料

      • get

        public boolean get​(int index)
      • set

        public void set​(int index,
                        boolean value)
      • set

        public void set​(int index)
      • set

        public void set​(int start,
                        int end)
      • clear

        public void clear​(int index)
      • clear

        public void clear​(int start,
                          int end)
      • flip

        public void flip​(int index)
      • flip

        public void flip​(int start,
                         int end)
      • clear

        public void clear()
      • cardinality

        public int cardinality()
      • nextSetBit

        public int nextSetBit​(int index)
      • parameters

        public static String parameters()