> @@ -321,6 +341,24 @@ public CreateServerOptions 
> securityGroupNames(Iterable<String> securityGroupName
>        return this;
>     }
>     
> +   /**
> +    * 
> +    * @see #getNetworks
> +    */
> +   public CreateServerOptions networks(String... networks) {
> +      return networks(ImmutableSet.copyOf(checkNotNull(networks, "network 
> should not be empty")));
> +   }
> +
> +   /**
> +    * @see #getNetworks
> +    */
> +   public CreateServerOptions networks(Iterable<String> networks) {
> +      for (String network : checkNotNull(networks, "networks"))
> +         checkNotNull(emptyToNull(network), "all networks must be 
> non-empty");

Excellent. This can be combined with the other refactoring(s) needed.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/72/files#r5513061

Reply via email to