org.joni
Class BitSet

java.lang.Object
  extended by org.joni.BitSet

public final class BitSet
extends Object


Field Summary
(package private)  int[] bits
           
private static int BITS_IN_ROOM
           
(package private) static int BITS_PER_BYTE
           
private static int BITS_TO_STRING_WRAP
           
(package private) static int BITSET_SIZE
           
(package private) static int ROOM_SHIFT
           
static int SINGLE_BYTE_SIZE
           
 
Constructor Summary
BitSet()
           
 
Method Summary
 void and(BitSet other)
           
 boolean at(int pos)
           
(package private) static int bit(int pos)
           
 void clear()
           
 void clear(int pos)
           
 void copy(BitSet other)
           
 void invert()
           
 void invert(int pos)
           
 void invertTo(BitSet to)
           
 boolean isEmpty()
           
private static int log2(int n)
           
 int numOn()
           
 void or(BitSet other)
           
 void set(int pos)
           
 void setAll()
           
 void setRange(int from, int to)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

BITS_PER_BYTE

static final int BITS_PER_BYTE
See Also:
Constant Field Values

SINGLE_BYTE_SIZE

public static final int SINGLE_BYTE_SIZE
See Also:
Constant Field Values

BITS_IN_ROOM

private static final int BITS_IN_ROOM
See Also:
Constant Field Values

BITSET_SIZE

static final int BITSET_SIZE
See Also:
Constant Field Values

ROOM_SHIFT

static final int ROOM_SHIFT

bits

final int[] bits

BITS_TO_STRING_WRAP

private static final int BITS_TO_STRING_WRAP
See Also:
Constant Field Values
Constructor Detail

BitSet

public BitSet()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

at

public boolean at(int pos)

set

public void set(int pos)

clear

public void clear(int pos)

invert

public void invert(int pos)

clear

public void clear()

isEmpty

public boolean isEmpty()

setRange

public void setRange(int from,
                     int to)

setAll

public void setAll()

invert

public void invert()

invertTo

public void invertTo(BitSet to)

and

public void and(BitSet other)

or

public void or(BitSet other)

copy

public void copy(BitSet other)

numOn

public int numOn()

bit

static int bit(int pos)

log2

private static int log2(int n)


Copyright © 2013. All Rights Reserved.