public class ProviderPredicates extends Object
Constructor and Description |
---|
ProviderPredicates() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Predicate<ProviderMetadata> |
all()
Returns all providers available to jclouds regardless of type.
|
static com.google.common.base.Predicate<ProviderMetadata> |
boundedByIso3166Code(String iso3166Code)
Returns the providers that are bound to the same location as the given ISO 3166 code.
|
static com.google.common.base.Predicate<ProviderMetadata> |
id(String id)
Returns all providers with the given id.
|
static com.google.common.base.Predicate<ProviderMetadata> |
intersectingIso3166Code(ProviderMetadata refProviderMetadata)
Return all providers that have at least one ISO 3166 code in common with the given provider metadata.
|
static com.google.common.base.Predicate<ProviderMetadata> |
type(String type)
Returns all providers with the given type.
|
public static com.google.common.base.Predicate<ProviderMetadata> all()
public static com.google.common.base.Predicate<ProviderMetadata> id(String id)
id
- the id of the provider to returnpublic static com.google.common.base.Predicate<ProviderMetadata> type(String type)
type
- the type of the provider to returnpublic static com.google.common.base.Predicate<ProviderMetadata> boundedByIso3166Code(String iso3166Code)
isoCode
- the ISO 3166 code to filter providers bypublic static com.google.common.base.Predicate<ProviderMetadata> intersectingIso3166Code(ProviderMetadata refProviderMetadata)
refProviderMetadata
- the provider metadata to use to filter providers byCopyright © 2009-2012 jclouds. All Rights Reserved.