|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--java.util.BitSet
A set of bits. The set automatically grows as more bits are needed.
| Constructor Summary | |
BitSet()
Creates an empty set. |
|
BitSet(int nbits)
Creates an empty set with the specified size. |
|
| Method Summary | |
void |
and(BitSet set)
Logically ANDs this bit set with the specified set of bits. |
void |
clear(int bit)
Clears a bit. |
Object |
clone()
Clones the BitSet. |
boolean |
equals(Object obj)
Compares this object against the specified object. |
boolean |
get(int bit)
Gets a bit. |
int |
hashCode()
Gets the hashcode. |
void |
or(BitSet set)
Logically ORs this bit set with the specified set of bits. |
void |
set(int bit)
Sets a bit. |
int |
size()
Calculates and returns the set's size |
String |
toString()
Converts the BitSet to a String. |
void |
xor(BitSet set)
Logically XORs this bit set with the specified set of bits. |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public BitSet()
public BitSet(int nbits)
nbits - the size of the set| Method Detail |
public void set(int bit)
bit - the bit to be setpublic void clear(int bit)
bit - the bit to be clearedpublic boolean get(int bit)
bit - the bit to be gottenpublic void and(BitSet set)
set - the bit set to be ANDed withpublic void or(BitSet set)
set - the bit set to be ORed withpublic void xor(BitSet set)
set - the bit set to be XORed withpublic int hashCode()
hashCode in class ObjectHashtablepublic int size()
public boolean equals(Object obj)
equals in class Objectobj - the object to commpare with
Hashtablepublic Object clone()
clone in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||