Class java.util.BitSet
All Packages  Class Hierarchy  This Package  Previous  Next  Index
  Class java.util.BitSet
java.lang.Object
   |
   +----java.util.BitSet
  -  public final class BitSet
  -  extends Object
  -  implements Cloneable
A set of bits. The set automatically grows as more bits are
needed.
   
  -   BitSet() BitSet()
-  Creates an empty set.
  
-   BitSet(int) BitSet(int)
-  Creates an empty set with the specified size.
   
  -   and(BitSet) and(BitSet)
-  Logically ANDs this bit set with the specified set of bits.
  
-   clear(int) clear(int)
-  Clears a bit.
  
-   clone() clone()
-  Clones the BitSet.
  
-   equals(Object) equals(Object)
-  Compares this object against the specified object.
  
-   get(int) get(int)
-  Gets a bit.
  
-   hashCode() hashCode()
-  Gets the hashcode.
  
-   or(BitSet) or(BitSet)
-  Logically ORs this bit set with the specified set of bits.
  
-   set(int) set(int)
-  Sets a bit.
  
-   size() size()
-  Calculates and returns the set's size
  
-   toString() toString()
-  Converts the BitSet to a String.
  
-   xor(BitSet) xor(BitSet)
-  Logically XORs this bit set with the specified set of bits.
   
 BitSet
BitSet
  public BitSet()
  -  Creates an empty set.
 BitSet
BitSet
  public BitSet(int nbits)
  -  Creates an empty set with the specified size.
  
    -  Parameters:
    
-  nbits - the size of the set
  
 
   
 set
set
  public void set(int bit)
  -  Sets a bit.
  
    -  Parameters:
    
-  bit - the bit to be set
  
 
 clear
clear
  public void clear(int bit)
  -  Clears a bit.
  
    -  Parameters:
    
-  bit - the bit to be cleared
  
 
 get
get
  public boolean get(int bit)
  -  Gets a bit.
  
    -  Parameters:
    
-  bit - the bit to be gotten
  
 
 and
and
  public void and(BitSet set)
  -  Logically ANDs this bit set with the specified set of bits.
  
    -  Parameters:
    
-  set - the bit set to be ANDed with
  
 
 or
or
  public void or(BitSet set)
  -  Logically ORs this bit set with the specified set of bits.
  
    -  Parameters:
    
-  set - the bit set to be ORed with
  
 
 xor
xor
  public void xor(BitSet set)
  -  Logically XORs this bit set with the specified set of bits.
  
    -  Parameters:
    
-  set - the bit set to be XORed with
  
 
 hashCode
hashCode
  public int hashCode()
  -  Gets the hashcode.
  
    -  Overrides:
    
-  hashCode in class Object
  
 
 size
size
  public int size()
  -  Calculates and returns the set's size
 equals
equals
  public boolean equals(Object obj)
  -  Compares this object against the specified object.
  
    -  Parameters:
    
-  obj - the object to commpare with
    
-  Returns:
    
-  true if the objects are the same; false otherwise.
    
-  Overrides:
    
-  equals in class Object
  
 
 clone
clone
  public Object clone()
  -  Clones the BitSet.
  
    -  Overrides:
    
-  clone in class Object
  
 
 toString
toString
  public String toString()
  -  Converts the BitSet to a String.
  
    -  Overrides:
    
-  toString in class Object
  
 
All Packages  Class Hierarchy  This Package  Previous  Next  Index