MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / equals

Method equals

src/main/java/field/utility/Rect.java:106–118  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

104 }
105
106 @Override
107 public boolean equals(Object o) {
108 if (this == o) return true;
109 if (!(o instanceof Rect)) return false;
110
111 Rect rect = (Rect) o;
112
113 if (Float.compare(rect.h, h) != 0) return false;
114 if (Float.compare(rect.w, w) != 0) return false;
115 if (Float.compare(rect.x, x) != 0) return false;
116 return Float.compare(rect.y, y) == 0;
117
118 }
119
120 @Override
121 public int hashCode() {

Callers 5

forceOnscreenMethod · 0.95
computeFrameMethod · 0.95
updateFrameToMiddleMethod · 0.95
updateFrameToMiddleMethod · 0.95
updateFrameToMiddleMethod · 0.95

Calls 1

compareMethod · 0.45

Tested by

no test coverage detected