<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.util.BitSet
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.html">This Package</a>  <a href="Package-java.util.html">Previous</a>  <a href="java.util.Calendar.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.util.BitSet
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----java.util.BitSet
</pre>
<hr>
<dl>
  <dt> public final class <b>BitSet</b>
  <dt> extends <a href="java.lang.Object.html#_top_">Object</a>
  <dt> implements <a href="java.lang.Cloneable.html#_top_">Cloneable</a>, <a href="java.io.Serializable.html#_top_">Serializable</a>
</dl>
A set of bits. The set automatically grows as more bits are needed.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#BitSet()"><b>BitSet</b></a>()
  <dd>  Creates an empty set.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#BitSet(int)"><b>BitSet</b></a>(int)
  <dd>  Creates an empty set with the specified size.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#and(java.util.BitSet)"><b>and</b></a>(BitSet)
  <dd>  Logically ANDs this bit set with the specified set of bits.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#clear(int)"><b>clear</b></a>(int)
  <dd>  Clears a bit.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#clone()"><b>clone</b></a>()
  <dd>  Clones the BitSet.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#equals(java.lang.Object)"><b>equals</b></a>(Object)
  <dd>  Compares this object against the specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#get(int)"><b>get</b></a>(int)
  <dd>  Gets a bit.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#hashCode()"><b>hashCode</b></a>()
  <dd>  Gets the hashcode.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#or(java.util.BitSet)"><b>or</b></a>(BitSet)
  <dd>  Logically ORs this bit set with the specified set of bits.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#set(int)"><b>set</b></a>(int)
  <dd>  Sets a bit.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#size()"><b>size</b></a>()
  <dd>  Calculates and returns the set's size in bits.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Converts the BitSet to a String.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#xor(java.util.BitSet)"><b>xor</b></a>(BitSet)
  <dd>  Logically XORs this bit set with the specified set of bits.
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="BitSet"></a>
<a name="BitSet()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>BitSet</b>
<pre>
 public BitSet()
</pre>
<dl>
  <dd> Creates an empty set.
<p>
</dl>
<a name="BitSet(int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>BitSet</b>
<pre>
 public BitSet(int nbits)
</pre>
<dl>
  <dd> Creates an empty set with the specified size.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> nbits - the size of the set
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="set(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="set"><b>set</b></a>
<pre>
 public void set(int bit)
</pre>
<dl>
  <dd> Sets a bit.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> bit - the bit to be set
  </dl></dd>
</dl>
<a name="clear(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="clear"><b>clear</b></a>
<pre>
 public void clear(int bit)
</pre>
<dl>
  <dd> Clears a bit.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> bit - the bit to be cleared
  </dl></dd>
</dl>
<a name="get(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="get"><b>get</b></a>
<pre>
 public boolean get(int bit)
</pre>
<dl>
  <dd> Gets a bit.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> bit - the bit to be gotten
  </dl></dd>
</dl>
<a name="and(java.util.BitSet)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="and"><b>and</b></a>
<pre>
 public void and(<a href="#_top_">BitSet</a> set)
</pre>
<dl>
  <dd> Logically ANDs this bit set with the specified set of bits.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> set - the bit set to be ANDed with
  </dl></dd>
</dl>
<a name="or(java.util.BitSet)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="or"><b>or</b></a>
<pre>
 public void or(<a href="#_top_">BitSet</a> set)
</pre>
<dl>
  <dd> Logically ORs this bit set with the specified set of bits.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> set - the bit set to be ORed with
  </dl></dd>
</dl>
<a name="xor(java.util.BitSet)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="xor"><b>xor</b></a>
<pre>
 public void xor(<a href="#_top_">BitSet</a> set)
</pre>
<dl>
  <dd> Logically XORs this bit set with the specified set of bits.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> set - the bit set to be XORed with
  </dl></dd>
</dl>
<a name="hashCode()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="hashCode"><b>hashCode</b></a>
<pre>
 public int hashCode()
</pre>
<dl>
  <dd> Gets the hashcode.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#hashCode()">hashCode</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="size()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="size"><b>size</b></a>
<pre>
 public int size()
</pre>
<dl>
  <dd> Calculates and returns the set's size in bits.
 The maximum element in the set is the size - 1st element.
<p>
</dl>
<a name="equals(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="equals"><b>equals</b></a>
<pre>
 public boolean equals(<a href="java.lang.Object.html#_top_">Object</a> obj)
</pre>
<dl>
  <dd> Compares this object against the specified object.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> obj - the object to compare with
    <dt> <b>Returns:</b>
    <dd> true if the objects are the same; false otherwise.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#equals(java.lang.Object)">equals</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="clone()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="clone"><b>clone</b></a>
<pre>
 public <a href="java.lang.Object.html#_top_">Object</a> clone()
</pre>
<dl>
  <dd> Clones the BitSet.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#clone()">clone</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="toString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> toString()
</pre>
<dl>
  <dd> Converts the BitSet to a String.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#toString()">toString</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.util.html">This Package</a>  <a href="Package-java.util.html">Previous</a>  <a href="java.util.Calendar.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
