class AbstractLocator implements LocatorIF, Serializable {

  @Override
  public boolean equals(Object object) {
    try {
      LocatorIF locator = (LocatorIF)object;
      return getAddress().equals(locator.getAddress()) &&
	getNotation().equalsIgnoreCase(locator.getNotation());
    } catch (ClassCastException e) {
      return false; // In case the object is not a locator
    } catch (NullPointerException e) {
      return false; // In case the object is null
    }
  }

}