(Object another)
| 53 | } |
| 54 | |
| 55 | @Override |
| 56 | public boolean equals(Object another) { |
| 57 | if (another instanceof World == false) { |
| 58 | return false; |
| 59 | } |
| 60 | World anotherWorld = (World) another; |
| 61 | return this.name.equals(anotherWorld.name); |
| 62 | } |
| 63 | |
| 64 | public ImageIcon getIcon() { |
| 65 | if (this.icon == null) { |
no outgoing calls
no test coverage detected