Esempio n. 1
0
  @Override
  public boolean equals(Object aThat) {
    if (this == aThat) {
      return true;
    }

    if (!(aThat instanceof HPCCECLDirectClient)) {
      return false;
    }

    HPCCECLDirectClient that = (HPCCECLDirectClient) aThat;
    EclDirectServiceSoapProxy thatSoapProxy;
    try {
      thatSoapProxy = that.getSoapProxy();
    } catch (Exception e) {
      thatSoapProxy = null;
    }

    return EqualsUtil.areEqual(
            wsEclDirectServiceSoapProxy.getEndpoint(), thatSoapProxy.getEndpoint())
        && EqualsUtil.areEqual(
            ((Stub) wsEclDirectServiceSoapProxy.getEclDirectServiceSoap()).getUsername(),
            ((Stub) thatSoapProxy.getEclDirectServiceSoap()).getUsername())
        && EqualsUtil.areEqual(
            ((Stub) wsEclDirectServiceSoapProxy.getEclDirectServiceSoap()).getPassword(),
            ((Stub) thatSoapProxy.getEclDirectServiceSoap()).getPassword());
  }
  @Override
  public boolean equals(Object aThat) {
    if (this == aThat) {
      return true;
    }

    if (!(aThat instanceof FileSprayWorkunit)) {
      return false;
    }
    FileSprayWorkunit that = (FileSprayWorkunit) aThat;

    // now a proper field-by-field evaluation can be made
    return EqualsUtil.areEqual(platform, that.platform)
        && EqualsUtil.areEqual(info.getID(), that.info.getID());
  }
Esempio n. 3
0
  @Override
  public boolean equals(Object aThat) {
    if (this == aThat) {
      return true;
    }

    if (!(aThat instanceof HPCCWsClient)) {
      return false;
    }

    HPCCWsClient that = (HPCCWsClient) aThat;

    return EqualsUtil.areEqual(getConnection(), that.getConnection());
  }