class GenericLocator extends AbstractLocator implements Externalizable {

  @Override
  public boolean equals(Object object) {
    try {
      LocatorIF locator = (LocatorIF)object;
      return address.equals(locator.getAddress()) &&
        notation.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
    }
  }

  public  GenericLocator();
  public  GenericLocator(String notation, String address);

}