(Object obj)
| 176 | } |
| 177 | |
| 178 | @Override |
| 179 | public boolean equals(Object obj) { |
| 180 | if (this == obj) |
| 181 | return true; |
| 182 | if (obj instanceof Decfloat x) { |
| 183 | parse(); |
| 184 | x.parse(); |
| 185 | |
| 186 | if (special != null && x.special != null) |
| 187 | return special == x.special; |
| 188 | else if (coefficient != null && x.coefficient != null) |
| 189 | return Objects.equals(coefficient, x.coefficient) && exponent == x.exponent; |
| 190 | else |
| 191 | return Objects.equals(data, x.data); |
| 192 | } |
| 193 | return false; |
| 194 | |
| 195 | } |
| 196 | |
| 197 | @Override |
| 198 | public String toString() { |