Save This Page
Home » jexcelapi_2_6_8 » jlex » [javadoc | source]
jlex
final class: SparseBitSet [javadoc | source]
java.lang.Object
   jlex.SparseBitSet

All Implemented Interfaces:
    Cloneable

A set of bits. The set automatically grows as more bits are needed.
Field Summary
 int[] offs    Sorted array of bit-block offsets. 
 long[] bits    Array of bit-blocks; each holding BITS bits. 
 int size    Number of blocks currently in use. 
Constructor:
 public SparseBitSet() 
 public SparseBitSet(int nbits) 
 public SparseBitSet(SparseBitSet set) 
    Creates an empty set with the same size as the given set.
Method from jlex.SparseBitSet Summary:
and,   clear,   clearAll,   clone,   elements,   equals,   equals,   get,   hashCode,   main,   or,   set,   size,   toString,   xor
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from jlex.SparseBitSet Detail:
 public  void and(SparseBitSet set) 
    Logically ANDs this bit set with the specified set of bits.
 public  void clear(int bit) 
    Clears a bit.
 public  void clearAll() 
    Clears all bits.
 public Object clone() 
    Clones the SparseBitSet.
 public Enumeration elements() 
    Return an Enumeration of Integers which represent set bit indices in this SparseBitSet.
 public boolean equals(Object obj) 
    Compares this object against the specified object.
 public static boolean equals(SparseBitSet a,
    SparseBitSet b) 
    Compares two SparseBitSets for equality.
 public boolean get(int bit) 
    Gets a bit.
 public int hashCode() 
    Gets the hashcode.
 public static  void main(String[] args) 
    Self-test.
 public  void or(SparseBitSet set) 
    Logically ORs this bit set with the specified set of bits.
 public  void set(int bit) 
    Sets a bit.
 public int size() 
    Calculates and returns the set's size
 public String toString() 
    Converts the SparseBitSet to a String.
 public  void xor(SparseBitSet set) 
    Logically XORs this bit set with the specified set of bits.