jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds-labs-google] JCLOUDS-458:Added ObjectAccessControls with expect tests (#36)
Date Wed, 17 Sep 2014 18:49:29 GMT
> +      if (obj == null || getClass() != obj.getClass())
> +         return false;
> +      ObjectAccessControls that = ObjectAccessControls.class.cast(obj);
> +      return equal(this.kind, that.kind) && equal(this.bucket, that.bucket)
&& equal(this.object, that.object)
> +               && equal(this.entity, that.entity);
> +   }
> +
> +   protected Objects.ToStringHelper string() {
> +      return super.string().omitNullValues().add("bucket", bucket).add("entity", entity).add("entityId",
entityId)
> +               .add("object", object).add("generation", generation).add("role", role).add("email",
email)
> +               .add("domain", domain).add("projectTeam", projectTeam);
> +   }
> +
> +   @Override
> +   public int hashCode() {
> +      return Objects.hashCode(kind, bucket, object, entity);

See @andrewgaul's question for `equals`

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-google/pull/36/files#r17685035
Mime
View raw message