public class


extends Object
   ↳ com.pnfsoftware.jeb.util.collect.BitMap

Class Overview

Fast bitmap making sub-optimal use of memory (One bit in the map requires 8 bits of storage). Use should be restricted to small maps only.


Public Constructors
BitMap(int bitsize)
Public Methods
void clear()
int countOnes()
int countZeros()
boolean equals(Object obj)
String formatAsRanges(boolean useExcludedEnds)
String formatAsRanges()
boolean get(int i)
int hashCode()
boolean isEmpty()
boolean isFull()
boolean set(int i, boolean v)
int size()
String toString()
Inherited Methods
From class java.lang.Object

Public Constructors

public BitMap (int bitsize)

Public Methods

public void clear ()

public int countOnes ()

public int countZeros ()

public boolean equals (Object obj)

public String formatAsRanges (boolean useExcludedEnds)

public String formatAsRanges ()

public boolean get (int i)

public int hashCode ()

public boolean isEmpty ()

public boolean isFull ()

public boolean set (int i, boolean v)

  • the previous value

public int size ()

public String toString ()