| ★ wanayoo — archive 1999 http://java.sun.com/products/jdk/1.0.2/api/java.util.BitSet.html | Nouvelle recherche | Portail wanayoo |
Packages This Package Prev Next Index
public final class java.util.BitSet
extends java.lang.Object (I-§1.12)
implements java.lang.Cloneable (I-§1.22)
{
// Constructors
public BitSet(); §3.1.1
public BitSet(int nbits); §3.1.2
// Methods
public void and(BitSet set); §3.1.3
public void clear(int bit); §3.1.4
public Object clone(); §3.1.5
public boolean equals(Object obj); §3.1.6
public boolean get(int bit); §3.1.7
public int hashCode(); §3.1.8
public void or(BitSet set); §3.1.9
public void set(int bit); §3.1.10
public int size(); §3.1.11
public String toString(); §3.1.12
public void xor(BitSet set); §3.1.13
}
This class implements a vector of bits that grows as needed. Each component of the bit set
has a boolean value. The bits of a BitSet are inded by nonnegative integers. Individual bits
can be examined, set, or cleared.
By default, all bits in the set initially have the value false.
Every bit set has a current size, which is the number of bits currently in the bit set.
public BitSet()
public BitSet(int nbits)
nbits
- the initial size of the bit set.
public void and(BitSet set)
set
- a bit set
public void clear(int bit)
bit
- the index of the bit to be cleared
public Object clone()
public boolean equals(Object obj)
obj
- the object to compare with
public boolean get(int bit)
bit
- the bit index
public int hashCode()
public void or(BitSet set)
set
- a bit set
public void set(int bit)
bit
- a bit index.
public int size()
public String toString()
public void xor(BitSet set)
Packages This Package Prev Next IndexJava API Document (HTML generated by dkramer on April 22, 1996)