Class ExtensionPredicates
java.lang.Object
org.jclouds.openstack.v2_0.predicates.ExtensionPredicates
Predicates handy when working with Extensions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
Constructor Details
-
ExtensionPredicates
public ExtensionPredicates()
-
-
Method Details
-
namespaceEquals
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
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
-
nameEquals
matches name of the given extension- Parameters:
name
- exhttp://docs.openstack.org/ext/keypairs/api/v1.1
- Returns:
- predicate that will match name of the given extension
-