| Package | Description | 
|---|---|
| java.util | Contains the collections framework, legacy collection classes, event model,
date and time facilities, internationalization, and miscellaneous utility
classes (a string tokenizer, a random-number generator, and a bit array). | 
| javax.swing.text.html.parser | Provides the default HTML parser, along with support classes. | 
| Modifier and Type | Method and Description | 
|---|---|
| BitSet | BitSet. get(int fromIndex,
   int toIndex)Returns a new  BitSetcomposed of bits from thisBitSetfromfromIndex(inclusive) totoIndex(exclusive). | 
| static BitSet | BitSet. valueOf(byte[] bytes)Returns a new bit set containing all the bits in the given byte array. | 
| static BitSet | BitSet. valueOf(ByteBuffer bb)Returns a new bit set containing all the bits in the given byte
 buffer between its position and limit. | 
| static BitSet | BitSet. valueOf(long[] longs)Returns a new bit set containing all the bits in the given long array. | 
| static BitSet | BitSet. valueOf(LongBuffer lb)Returns a new bit set containing all the bits in the given long
 buffer between its position and limit. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | BitSet. and(BitSet set)Performs a logical AND of this target bit set with the
 argument bit set. | 
| void | BitSet. andNot(BitSet set)Clears all of the bits in this  BitSetwhose corresponding
 bit is set in the specifiedBitSet. | 
| boolean | BitSet. intersects(BitSet set)Returns true if the specified  BitSethas any bits set totruethat are also set totruein thisBitSet. | 
| void | BitSet. or(BitSet set)Performs a logical OR of this bit set with the bit set
 argument. | 
| void | BitSet. xor(BitSet set)Performs a logical XOR of this bit set with the bit set
 argument. | 
| Modifier and Type | Field and Description | 
|---|---|
| BitSet | Element. exclusions | 
| BitSet | Element. inclusions | 
| Modifier and Type | Method and Description | 
|---|---|
| Element | DTD. defineElement(String name,
             int type,
             boolean omitStart,
             boolean omitEnd,
             ContentModel content,
             BitSet exclusions,
             BitSet inclusions,
             AttributeList atts)Returns the  Elementwhich matches the
 specified parameters. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.