(Object o)
| 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() { |
no test coverage detected