Class ExtensionPredicates
- java.lang.Object
-
- org.jclouds.openstack.v2_0.predicates.ExtensionPredicates
-
public class ExtensionPredicates extends Object
Predicates handy when working with Extensions
-
-
Constructor Summary
Constructors Constructor Description ExtensionPredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.base.Predicate<Extension>
aliasEquals(String alias)
matches alias of the given extensionstatic com.google.common.base.Predicate<Extension>
nameEquals(String name)
matches name of the given extensionstatic com.google.common.base.Predicate<Extension>
namespaceEquals(URI namespace)
matches namespace of the given extensionstatic com.google.common.base.Predicate<Extension>
namespaceOrAliasEquals(URI namespace, Collection<URI> namespaceAliases)
matches namespace of the given extension
-
-
-
Method Detail
-
namespaceEquals
public static com.google.common.base.Predicate<Extension> namespaceEquals(URI namespace)
matches namespace of the given extension- Parameters:
namespace
- exhttp://docs.openstack.org/ext/keypairs/api/v1.1
- Returns:
- predicate that will match namespace of the given extension
-
aliasEquals
public static com.google.common.base.Predicate<Extension> aliasEquals(String alias)
matches alias of the given extension- Parameters:
alias
- ex.os-keypairs
- Returns:
- predicate that will alias of the given extension
-
namespaceOrAliasEquals
public static com.google.common.base.Predicate<Extension> namespaceOrAliasEquals(URI namespace, Collection<URI> namespaceAliases)
matches namespace of the given extension- Parameters:
namespace
- exhttp://docs.openstack.org/ext/keypairs/api/v1.1
namespaceAliases
- Collection of exhttp://docs.openstack.org/compute/ext/keypairs/api/v1.1
- Returns:
- predicate that will match namespace of the given extension
-
-