public class

CMStateSet

extends Object
java.lang.Object
   ↳ org.apache.xerces.impl.dtd.models.CMStateSet

Class Overview

This class is a very simple bitset class. The DFA content model code needs to support a bit set, but the java BitSet class is way, way overkill. Our bitset never needs to be expanded after creation, hash itself, etc... Since the vast majority of content models will never require more than 64 bits, and since allocation of anything in Java is expensive, this class provides a hybrid implementation that uses two ints for instances that use 64 bits or fewer. It has a byte array reference member which will only be used if more than 64 bits are required. Note that the code that uses this class will never perform operations on sets of different sizes, so that check does not have to be made here.@xerces.internal

Summary

Public Constructors
CMStateSet(int bitCount)
Public Methods
boolean equals(Object o)
final boolean getBit(int bitToGet)
int hashCode()
final void intersection(CMStateSet setToAnd)
final boolean isEmpty()
final void setBit(int bitToSet)
final void setTo(CMStateSet srcSet)
String toString()
final void union(CMStateSet setToOr)
final void zeroBits()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CMStateSet (int bitCount)

Public Methods

public boolean equals (Object o)

public final boolean getBit (int bitToGet)

public int hashCode ()

public final void intersection (CMStateSet setToAnd)

public final boolean isEmpty ()

public final void setBit (int bitToSet)

public final void setTo (CMStateSet srcSet)

public String toString ()

public final void union (CMStateSet setToOr)

public final void zeroBits ()