MCPcopy Index your code
hub / github.com/jOOQ/jOOQ / hashCode

Method hashCode

jOOQ/src/main/java/org/jooq/Decfloat.java:158–176  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156 // ------------------------------------------------------------------------
157
158 @Override
159 public int hashCode() {
160 parse();
161
162 if (special != null) {
163 return special.hashCode();
164 }
165 else if (coefficient != null) {
166 final int prime = 31;
167 int result = 1;
168
169 result = prime * result + ((coefficient == null) ? 0 : coefficient.hashCode());
170 result = prime * result + exponent;
171
172 return result;
173 }
174 else
175 return data.hashCode();
176 }
177
178 @Override
179 public boolean equals(Object obj) {

Callers

nothing calls this directly

Calls 2

parseMethod · 0.95
hashCodeMethod · 0.65

Tested by

no test coverage detected