@see java.lang.Object#equals(java.lang.Object)
(Object obj)
| 196 | */ |
| 197 | |
| 198 | public boolean equals(Object obj) { |
| 199 | if (this == obj) |
| 200 | return true; |
| 201 | if (obj == null) |
| 202 | return false; |
| 203 | if (getClass() != obj.getClass()) |
| 204 | return false; |
| 205 | final Unit other = (Unit) obj; |
| 206 | if (name == null) { |
| 207 | if (other.name != null) |
| 208 | return false; |
| 209 | } else if (!name.equals(other.name)) |
| 210 | return false; |
| 211 | return true; |
| 212 | } |
| 213 | |
| 214 | } |
no outgoing calls
no test coverage detected