jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Turli <notificati...@github.com>
Subject Re: [jclouds/jclouds-labs] [JCLOUDS-1257] Initial support ManagedDataDisks (#372)
Date Tue, 11 Apr 2017 07:32:22 GMT
andreaturli commented on this pull request.



> -      toString.add("availabilitySet", availabilitySet);
-      toString.add("availabilitySetName", availabilitySetName);
-      return toString;
+   public int hashCode() {
+      int result = super.hashCode();
+      result = 31 * result + (virtualNetworkName != null ? virtualNetworkName.hashCode()
: 0);
+      result = 31 * result + (subnetId != null ? subnetId.hashCode() : 0);
+      result = 31 * result + (blob != null ? blob.hashCode() : 0);
+      result = 31 * result + (availabilitySet != null ? availabilitySet.hashCode() : 0);
+      result = 31 * result + (availabilitySetName != null ? availabilitySetName.hashCode()
: 0);
+      result = 31 * result + (dataDisks != null ? dataDisks.hashCode() : 0);
+      return result;
+   }
+
+   @Override
+   public String toString() {

I've implemented dozen of `*TemplateOptions` and I've never noticed `string()` :) 
Thanks!

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/372#discussion_r110831642
Mime
View raw message