MCPcopy Create free account
hub / github.com/jOOQ/jOOQ / equals

Method equals

jOOQ/src/main/java/org/jooq/Decfloat.java:178–195  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

parseMethod · 0.95
parseMethod · 0.65
equalsMethod · 0.65

Tested by

no test coverage detected