コード例 #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());
  }
コード例 #2
0
 @Override
 public int hashCode() {
   int result = HashCodeUtil.SEED;
   result = HashCodeUtil.hash(result, wsEclDirectServiceSoapProxy.getEndpoint());
   result =
       HashCodeUtil.hash(
           result, ((Stub) wsEclDirectServiceSoapProxy.getEclDirectServiceSoap()).getUsername());
   result =
       HashCodeUtil.hash(
           result, ((Stub) wsEclDirectServiceSoapProxy.getEclDirectServiceSoap()).getPassword());
   return result;
 }