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

Method equals

src/test/java/org/assertj/core/test/Person.java:40–50  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

38 }
39
40 @Override
41 public boolean equals(Object obj) {
42 if (this == obj) return true;
43 if (obj == null) return false;
44 if (getClass() != obj.getClass()) return false;
45 Person other = (Person) obj;
46 if (name == null) {
47 if (other.name != null) return false;
48 } else if (!name.equals(other.name)) return false;
49 return true;
50 }
51
52 @Override
53 public int compareTo(Person other) {

Callers

nothing calls this directly

Calls 1

equalsMethod · 0.65

Tested by

no test coverage detected