Class LongBitSet


  • public class LongBitSet
    extends java.lang.Object
    Obtained from http://java-performance.info/bit-sets/
    • Constructor Summary

      Constructors 
      Constructor Description
      LongBitSet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear​(long fromIndex, long toIndex)
      Clear all bits between fromIndex (inclusive) and toIndex (exclusive)
      boolean get​(long index)
      Get a value for a given index
      void set​(long index, boolean value)
      Set a given value for a given index
      • Methods inherited from class java.lang.Object

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

      • LongBitSet

        public LongBitSet()
    • Method Detail

      • set

        public void set​(long index,
                        boolean value)
        Set a given value for a given index
        Parameters:
        index - Long index
        value - Value to set
      • get

        public boolean get​(long index)
        Get a value for a given index
        Parameters:
        index - Long index
        Returns:
        Value associated with a given index
      • clear

        public void clear​(long fromIndex,
                          long toIndex)
        Clear all bits between fromIndex (inclusive) and toIndex (exclusive)
        Parameters:
        fromIndex - Start index (inclusive)
        toIndex - End index (exclusive)