Class java.util.BitSet
All Packages    This Package    Previous    Next

Class java.util.BitSet

java.lang.Object
   |
   +----java.util.BitSet

public final class BitSet
extends Object
A set of bits. The set is automatically grown as more bits are needed.
Version:
1.2, 20 Apr 1995
Author:
Arthur van Hoff

BitSet()
Create an empty set.
BitSet(int)
Create an empty set of a know size.

and(BitSet)
Logical AND with another set of bits.
clear(int)
Clear a bit.
clone()
Clone
equals(BitSet)
Compare two bit sets.
equals(Object)
Compare against an object.
get(int)
Get a bit.
or(BitSet)
Logical OR with another set of bits.
set(int)
Set a bit.
size()
Size, returns the number of bits.
toString()
Convert to a string.
xor(BitSet)
Logical XOR with another set of bits.

BitSet
  public BitSet()
Create an empty set.

BitSet

  public BitSet(int nbits)
Create an empty set of a know size.

set
  public void set(int bit)
Set a bit.

clear

  public void clear(int bit)
Clear a bit.

get

  public boolean get(int bit)
Get a bit.

and

  public void and(BitSet set)
Logical AND with another set of bits.

or

  public void or(BitSet set)
Logical OR with another set of bits.

xor

  public void xor(BitSet set)
Logical XOR with another set of bits.

equals

  public boolean equals(BitSet set)
Compare two bit sets.

size

  public int size()
Size, returns the number of bits.

equals

  public boolean equals(Object obj)
Compare against an object.
Overrides:
equals in class Object

clone

  public Object clone()
Clone
Overrides:
clone in class Object

toString

  public String toString()
Convert to a string.
Overrides:
toString in class Object


All Packages    This Package    Previous    Next