MCPcopy Index your code
hub / github.com/fadeyev/intellijcoder / equals

Method equals

intellijcoder/src/intellijcoder/model/Problem.java:74–91  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

72 }
73
74 @Override
75 public boolean equals(Object o) {
76 if (this == o) return true;
77 if (o == null || getClass() != o.getClass()) return false;
78
79 Problem that = (Problem) o;
80
81 if (contestName != null ? !contestName.equals(that.contestName) : that.contestName != null) return false;
82 if (className != null ? !className.equals(that.className) : that.className != null) return false;
83 if (methodName != null ? !methodName.equals(that.methodName) : that.methodName != null) return false;
84 if (!Arrays.equals(paramNames, that.paramNames)) return false;
85 if (!Arrays.equals(paramTypes, that.paramTypes)) return false;
86 if (returnType != null ? !returnType.equals(that.returnType) : that.returnType != null) return false;
87 //noinspection RedundantIfStatement
88 if (!Arrays.equals(testCases, that.testCases)) return false;
89
90 return true;
91 }
92
93 @Override
94 public int hashCode() {

Callers 9

valueObjectMethod · 0.95
hasSubdirectoryMethod · 0.45
addTestLibrariesMethod · 0.45
isModifiedMethod · 0.45
matchesMethod · 0.45
getValueLiteralMethod · 0.45
getReturnValueMethod · 0.45
isPrimitiveNumberMethod · 0.45

Calls

no outgoing calls

Tested by 4

valueObjectMethod · 0.76
matchesMethod · 0.36
getValueLiteralMethod · 0.36