public boolean equals(Object o) { if (o == this) return true; if (!(o instanceof City)) return false; City other = (City)o; return safeEquals(this.getName(), other.getName()) && safeEquals(this.getStateAbbrev(), other.getStateAbbrev()) && safeEquals(this.getZip(), other.getZip()); }
| Type | Description |
|---|---|
| Uncaught Exceptions | Exceptions that do not need "throws" on the method header and do not need to be caught be method senders. |
| Caught Exceptions | Exceptions that yes do need "throws" on the method header and yes do need to be caught be method senders. |
| Modifier | Visibility |
|---|---|
| no modifier | package |
| public | universal |
| Modifier | Class | Package | Subclass | World |
|---|---|---|---|---|
| public | Y | Y | Y | Y |
| protected | Y | Y | Y | N |
| no modifier | Y | Y | N | N |
| private | Y | N | N | N |