org.jclouds.openstack.nova.v2_0.predicates
Class SecurityGroupPredicates

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.predicates.SecurityGroupPredicates

public class SecurityGroupPredicates
extends Object

Predicates handy when working with SecurityGroups

Author:
Adrian Cole

Constructor Summary
SecurityGroupPredicates()
           
 
Method Summary
static com.google.common.base.Predicate<SecurityGroup> nameEquals(String name)
          matches name of the given security group
static com.google.common.base.Predicate<SecurityGroup> nameMatches(com.google.common.base.Predicate<String> name)
          matches name of the given security group
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityGroupPredicates

public SecurityGroupPredicates()
Method Detail

nameEquals

public static com.google.common.base.Predicate<SecurityGroup> nameEquals(String name)
matches name of the given security group

Parameters:
name -
Returns:
predicate that matches name

nameMatches

public static com.google.common.base.Predicate<SecurityGroup> nameMatches(com.google.common.base.Predicate<String> name)
matches name of the given security group

Parameters:
name -
Returns:
predicate that matches name


Copyright © 2009-2012 jclouds. All Rights Reserved.