MCPcopy Create free account
hub / github.com/Chave0v0/API-Highlighter / equals

Method equals

src/main/java/com/chave/pojo/APIItem.java:27–55  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

25 }
26
27 @Override
28 public boolean equals(Object o) {
29 if (this == o) return true;
30 if (o == null || getClass() != o.getClass()) return false;
31
32 APIItem item = (APIItem) o;
33
34 if (item.getMethod() == null) {
35 if (this.method == null) {
36 if (item.getPath().equalsIgnoreCase(this.path)) {
37 return true;
38 }
39
40 return false;
41 } else {
42 return false;
43 }
44 } else {
45 if (this.method == null) {
46 return false;
47 } else {
48 if (item.getMethod().equalsIgnoreCase(this.method) && item.getPath().equalsIgnoreCase(this.path)) {
49 return true;
50 }
51
52 return false;
53 }
54 }
55 }
56
57}

Callers 6

checkAPIItemExistMethod · 0.80
setAPIFoundMethod · 0.80
setAPIResultMethod · 0.80
sensitiveInfoMatchMethod · 0.80
operateRuleDialogMethod · 0.80
actionPerformedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected