cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nlivens <...@git.apache.org>
Subject [GitHub] cloudstack pull request: CLOUDSTACK-8832 : Update Nuage VSP plugin...
Date Tue, 27 Oct 2015 08:11:34 GMT
Github user nlivens commented on a diff in the pull request:

    https://github.com/apache/cloudstack/pull/801#discussion_r43092627
  
    --- Diff: plugins/network-elements/nuage-vsp/src/com/cloud/agent/api/VspResourceCommand.java
---
    @@ -79,4 +79,41 @@ public String getProxyUserDomainuuid() {
         public boolean executeInSequence() {
             return false;
         }
    +
    +    @Override
    +    public boolean equals(Object o) {
    +        if (this == o) return true;
    +        if (o == null || getClass() != o.getClass()) return false;
    +
    +        VspResourceCommand that = (VspResourceCommand) o;
    +
    +        if (_childResource != null ? !_childResource.equals(that._childResource) : that._childResource
!= null)
    +            return false;
    +        if (_entityDetails != null ? !_entityDetails.equals(that._entityDetails) : that._entityDetails
!= null)
    +            return false;
    +        if (_method != null ? !_method.equals(that._method) : that._method != null) return
false;
    +        if (_proxyUserDomainuuid != null ? !_proxyUserDomainuuid.equals(that._proxyUserDomainuuid)
: that._proxyUserDomainuuid != null)
    +            return false;
    +        if (_proxyUserUuid != null ? !_proxyUserUuid.equals(that._proxyUserUuid) : that._proxyUserUuid
!= null)
    +            return false;
    +        if (_resource != null ? !_resource.equals(that._resource) : that._resource !=
null) return false;
    +        if (_resourceFilter != null ? !_resourceFilter.equals(that._resourceFilter) :
that._resourceFilter != null)
    +            return false;
    +        if (_resourceId != null ? !_resourceId.equals(that._resourceId) : that._resourceId
!= null) return false;
    +
    +        return true;
    +    }
    +
    +    @Override
    +    public int hashCode() {
    --- End diff --
    
    Implemented <code>hashCode</code> method for the <code>Command</code>
super class, calling it from subclass.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message