BitSet : Java Glossary

BitSEt

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:

http://mindprod.com/jgloss/bitset.html
ClustrMaps is down

optional Replicator mirror
of mindprod.com
on local hard disk J:

J:\mindprod\jgloss\bitset.html
logo
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy.
Blog
IP:[65.110.21.43]
Your face IP:[54.196.69.189]
You are visitor number 6,535.