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

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

public class KeyPairPredicates
extends Object

Predicates handy when working with KeyPairs

Author:
Adam Lowe

Constructor Summary
KeyPairPredicates()
           
 
Method Summary
static com.google.common.base.Predicate<KeyPair> nameEquals(String name)
          matches name of the given keypair starts with the specified prefix
static com.google.common.base.Predicate<KeyPair> nameMatches(com.google.common.base.Predicate<String> name)
          matches name of the given key pair
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyPairPredicates

public KeyPairPredicates()
Method Detail

nameMatches

public static com.google.common.base.Predicate<KeyPair> nameMatches(com.google.common.base.Predicate<String> name)
matches name of the given key pair

Parameters:
name -
Returns:
predicate that matches name

nameEquals

public static com.google.common.base.Predicate<KeyPair> nameEquals(String name)
matches name of the given keypair starts with the specified prefix

Parameters:
name - the prefix you are looking for
Returns:
the predicate


Copyright © 2009-2012 jclouds. All Rights Reserved.