(Object obj)
| 40 | } |
| 41 | |
| 42 | @Override |
| 43 | public boolean equals(Object obj) |
| 44 | { |
| 45 | if (obj instanceof CityRect) { |
| 46 | CityRect rhs = (CityRect)obj; |
| 47 | return this.x == rhs.x && |
| 48 | this.y == rhs.y && |
| 49 | this.width == rhs.width && |
| 50 | this.height == rhs.height; |
| 51 | } |
| 52 | else { |
| 53 | return false; |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | @Override |
| 58 | public String toString() |
no outgoing calls
no test coverage detected