/[classpath]/classpath/java/util/BitSet.java
ViewVC logotype

Diff of /classpath/java/util/BitSet.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.18 by mark, Sat Jul 2 20:32:41 2005 UTC revision 1.19 by trebligd, Tue Jul 5 10:28:03 2005 UTC
# Line 116  public class BitSet implements Cloneable Line 116  public class BitSet implements Cloneable
116     * given <code>set</code>.  This means it builds the intersection     * given <code>set</code>.  This means it builds the intersection
117     * of the two sets.  The result is stored into this bit set.     * of the two sets.  The result is stored into this bit set.
118     *     *
119     * @param set the second bit set     * @param bs the second bit set
120     * @throws NullPointerException if set is null     * @throws NullPointerException if bs is null
121     */     */
122    public void and(BitSet bs)    public void and(BitSet bs)
123    {    {
# Line 131  public class BitSet implements Cloneable Line 131  public class BitSet implements Cloneable
131    
132    /**    /**
133     * Performs the logical AND operation on this bit set and the     * Performs the logical AND operation on this bit set and the
134     * complement of the given <code>set</code>.  This means it     * complement of the given <code>bs</code>.  This means it
135     * selects every element in the first set, that isn't in the     * selects every element in the first set, that isn't in the
136     * second set.  The result is stored into this bit set and is     * second set.  The result is stored into this bit set and is
137     * effectively the set difference of the two.     * effectively the set difference of the two.
138     *     *
139     * @param set the second bit set     * @param bs the second bit set
140     * @throws NullPointerException if set is null     * @throws NullPointerException if bs is null
141     * @since 1.2     * @since 1.2
142     */     */
143    public void andNot(BitSet bs)    public void andNot(BitSet bs)
# Line 190  public class BitSet implements Cloneable Line 190  public class BitSet implements Cloneable
190    }    }
191    
192    /**    /**
193     * Removes the integer <code>bitIndex</code> from this set. That is     * Removes the integer <code>pos</code> from this set. That is
194     * the corresponding bit is cleared.  If the index is not in the set,     * the corresponding bit is cleared.  If the index is not in the set,
195     * this method does nothing.     * this method does nothing.
196     *     *
197     * @param bitIndex a non-negative integer     * @param pos a non-negative integer
198     * @throws IndexOutOfBoundsException if bitIndex &lt; 0     * @throws IndexOutOfBoundsException if pos &lt; 0
199     */     */
200    public void clear(int pos)    public void clear(int pos)
201    {    {
# Line 336  public class BitSet implements Cloneable Line 336  public class BitSet implements Cloneable
336     * set, otherwise false.     * set, otherwise false.
337     *     *
338     * @param pos a non-negative integer     * @param pos a non-negative integer
339     * @return the value of the bit at the specified index     * @return the value of the bit at the specified position
340     * @throws IndexOutOfBoundsException if the index is negative     * @throws IndexOutOfBoundsException if the pos is negative
341     */     */
342    public boolean get(int pos)    public boolean get(int pos)
343    {    {

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26