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 |
{ |
{ |
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) |
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 < 0 |
* @throws IndexOutOfBoundsException if pos < 0 |
199 |
*/ |
*/ |
200 |
public void clear(int pos) |
public void clear(int pos) |
201 |
{ |
{ |
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 |
{ |
{ |