MCPcopy Create free account
hub / github.com/SimHacker/micropolis / equals

Method equals

micropolis-java/src/micropolisj/engine/CityRect.java:42–55  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

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()

Callers 4

getBooleanAttributeMethod · 0.45
generateTileNamesMethod · 0.45
setToolCursorMethod · 0.45
removeLocaleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected