public final boolean equals(Object o){ boolean result = false; try {  ServiceURL sURL = (ServiceURL) o; result =  this.getServiceType().equals(sURL.getServiceType()) && this.getHost().equals(sURL.getHost()) && (this.getPort() == sURL.getPort())&& this.getURLPath().equals(sURL.getURLPath()); } catch (ClassCastException cce){} return result; }
public boolean equals(Object obj) { boolean result = false; try { ServiceURL u = (ServiceURL)obj; result = u.getServiceType().equals(serviceType) && u.getHost().equals(getHost()) && u.getPort() == getPort() && u.getURLPath().equals(getURLPath()) && u.getTransport().equals(getTransport()); }catch(ClassCastException ex) { }  return result; }
  public final boolean equals(Object o){    boolean result = false;    try {//      System.out.println( " Comparing " +this +" to "+ o);      ServiceURL sURL = (ServiceURL) o;      result =  this.getServiceType().equals(sURL.getServiceType()) &&                this.getHost().equals(sURL.getHost()) &&                (this.getPort() == sURL.getPort())&&                this.getURLPath().equals(sURL.getURLPath());    } catch (ClassCastException cce){}    return result;  }