MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / equals

Method equals

java/src/org/openqa/selenium/Rectangle.java:73–88  ·  view source on GitHub ↗
(@Nullable Object o)

Source from the content-addressed store, hash-verified

71 }
72
73 @Override
74 public boolean equals(@Nullable Object o) {
75 if (this == o) {
76 return true;
77 }
78 if (o == null || getClass() != o.getClass()) {
79 return false;
80 }
81
82 Rectangle rectangle = (Rectangle) o;
83
84 return x == rectangle.x
85 && y == rectangle.y
86 && height == rectangle.height
87 && width == rectangle.width;
88 }
89
90 @Override
91 public int hashCode() {

Callers

nothing calls this directly

Calls 1

getClassMethod · 0.65

Tested by

no test coverage detected