BitSet : Java Glossary


java.util.BitSet simulates bit strings longer than 64 bits using an internal array of longs. Normally you would use a primitive long for a BitSet <= 64 bits long or an int for a BitSet <= 32 bits long.

BitSet supports and, or, xor, andNot and clear. It does not have a shift, but you can copy bits, one at a time with get/set.

Two other techniques for dealing with sets include HashSet and EnumSet.

Learning More

Oracle’s Javadoc on BitSet class : available:

available on the web at:
ClustrMaps is down

optional Replicator mirror
on local hard disk J:

Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy.
Your face IP:[]
You are visitor number 6,544.