MCPcopy Index your code
hub / github.com/assertj/assertj / equals

Method equals

src/test/java/org/assertj/core/test/Name.java:69–82  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

67 }
68
69 @Override
70 public boolean equals(Object obj) {
71 if (this == obj) return true;
72 if (obj == null) return false;
73 if (getClass() != obj.getClass()) return false;
74 Name other = (Name) obj;
75 if (first == null) {
76 if (other.first != null) return false;
77 } else if (!first.equals(other.first)) return false;
78 if (last == null) {
79 if (other.last != null) return false;
80 } else if (!last.equals(other.last)) return false;
81 return true;
82 }
83
84
85}

Callers

nothing calls this directly

Calls 1

equalsMethod · 0.65

Tested by

no test coverage detected