> +      return new Predicate<SecurityGroup>() {
> +
> +         @Override
> +         public boolean apply(SecurityGroup group) {
> +            return Iterables.any(group.getIngressRules(), new 
> Predicate<IngressRule>() {
> +                  @Override
> +                  public boolean apply(IngressRule rule) {
> +                     return rule.getStartPort() <= port && rule.getEndPort() 
> >= port;
> +                  }
> +               });
> +         }
> +
> +         @Override
> +         public String toString() {
> +            return "portInRange(" + port + ")";
> +         }

Do we normally have `toString` implementations for this and all the following 
predicate implementations?

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

Reply via email to