Class BitMap

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class BitMap
    extends java.util.BitSet
    Author:
    Loc Ha
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      BitMap()  
      BitMap​(int bits)  
      BitMap​(java.util.BitSet bitSet)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BitMap copy()  
      BitMap off​(int... indexes)  
      BitMap off​(int fromIdx, int toIdxExclusive)  
      BitMap off​(java.lang.String charRangles)  
      BitMap on​(int... indexes)  
      BitMap on​(int fromIdx, int toIdxExclusive)  
      BitMap on​(java.lang.String charRangles)  
      BitMap toggle​(int... indexes)  
      BitMap toggle​(int fromIdx, int toIdxExclusive)  
      BitMap toggle​(java.lang.String charRangles)  
      • Methods inherited from class java.util.BitSet

        and, andNot, cardinality, clear, clear, clear, clone, equals, flip, flip, get, get, hashCode, intersects, isEmpty, length, nextClearBit, nextSetBit, or, previousClearBit, previousSetBit, set, set, set, set, size, stream, toByteArray, toLongArray, toString, valueOf, valueOf, valueOf, valueOf, xor
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • BitMap

        public BitMap()
      • BitMap

        public BitMap​(int bits)
      • BitMap

        public BitMap​(java.util.BitSet bitSet)
    • Method Detail

      • on

        public BitMap on​(int fromIdx,
                         int toIdxExclusive)
      • on

        public BitMap on​(int... indexes)
      • on

        public BitMap on​(java.lang.String charRangles)
      • off

        public BitMap off​(int fromIdx,
                          int toIdxExclusive)
      • off

        public BitMap off​(int... indexes)
      • off

        public BitMap off​(java.lang.String charRangles)
      • toggle

        public BitMap toggle​(int fromIdx,
                             int toIdxExclusive)
      • toggle

        public BitMap toggle​(int... indexes)
      • toggle

        public BitMap toggle​(java.lang.String charRangles)