jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zack Shoylev <notificati...@github.com>
Subject Re: [jclouds-labs] JCLOUDS-951: Remove inheritance in ProfitBrick's AutoValue classes (#210)
Date Thu, 15 Oct 2015 18:58:33 GMT
> -
> -            public RuleWithIcmp.Builder newRule() {
> -               return new RuleWithIcmp.Builder(this);
> -            }
> -
> -            public Builder addRule(RuleWithIcmp rule) {
> -               this.rules.add(rule);
> -               return this;
> -            }
> -
> -            public AddRulePayload build() {
> -               return AddRulePayload.create(nicId, rules);
> -            }
> -         }
> -      }
> +   public Builder toBuilder() {

What about abstract Builder toBuilder(); and have autovalue take care of it?

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