> + }
> +
> + /**
> + * @see IpPermission#getPorts()
> + */
> + public Builder addPort(Integer port) {
> + this.ports.add(singleton(checkNotNull(port, "port")));
> + return this;
> + }
> +
> + /**
> + * @see IpPermission#getPorts()
> + */
> + public Builder addPortRange(Integer start, Integer end) {
> + checkState(checkNotNull(start, "start") < checkNotNull(end, "end"),
> + "start of range must be lower than end of range");
(and I'm copying that same tweak over to GCE's Firewall.Rule, where this
snippet came from)
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/145/files#r6250324