MCPcopy Index your code
hub / github.com/apache/groovy / equals

Method equals

src/main/java/org/codehaus/groovy/ast/ImportNode.java:202–216  ·  view source on GitHub ↗
(Object that)

Source from the content-addressed store, hash-verified

200 }
201
202 @Override
203 public boolean equals(Object that) {
204 if (that == this) return true;
205 if (!(that instanceof ImportNode node)) return false;
206
207 if (!Objects.equals(type, node.type))
208 return false;
209 if (!Objects.equals(alias, node.alias))
210 return false;
211 if (!Objects.equals(fieldName, node.fieldName))
212 return false;
213 if (!Objects.equals(packageName, node.packageName))
214 return false;
215 return (isStar == node.isStar && isStatic == node.isStatic);
216 }
217
218 @Override
219 public int hashCode() {

Callers 1

checkUsageMethod · 0.95

Calls 1

equalsMethod · 0.65

Tested by

no test coverage detected