7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
8 |
the Free Software Foundation; either version 2, or (at your option) |
the Free Software Foundation; either version 2, or (at your option) |
9 |
any later version. |
any later version. |
10 |
|
|
11 |
GNU Classpath is distributed in the hope that it will be useful, but |
GNU Classpath is distributed in the hope that it will be useful, but |
12 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
51 |
* <p>Where the "xxx" represents three bits that should be ignored, and |
* <p>Where the "xxx" represents three bits that should be ignored, and |
52 |
* can have any value. |
* can have any value. |
53 |
* |
* |
54 |
* @author Casey Marshall (rsdio@metastatic.org) |
* @author Casey Marshall (csm@gnu.org) |
55 |
*/ |
*/ |
56 |
public class BitString implements Cloneable, Comparable, java.io.Serializable |
public class BitString implements Cloneable, Comparable |
57 |
{ |
{ |
58 |
|
|
59 |
// Fields. |
// Fields. |
288 |
|
|
289 |
public boolean equals(Object o) |
public boolean equals(Object o) |
290 |
{ |
{ |
291 |
if (this == o) |
if (!(o instanceof BitString)) |
292 |
return true; |
return false; |
293 |
BitString that = (BitString) o; |
BitString that = (BitString) o; |
294 |
// True for cloned instances. |
// True for cloned instances. |
295 |
if (this.bytes == that.bytes && this.ignoredBits == that.ignoredBits) |
if (this.bytes == that.bytes && this.ignoredBits == that.ignoredBits) |