public class ApiPredicates extends Object
Constructor and Description |
---|
ApiPredicates() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Predicate<ApiMetadata> |
all()
Returns all apis available to jclouds regardless of type.
|
static com.google.common.base.Predicate<RestApiMetadata> |
apiAssignableFrom(com.google.common.reflect.TypeToken<?> type)
Returns all apis with the given type.
|
static com.google.common.base.Predicate<ApiMetadata> |
contextAssignableFrom(com.google.common.reflect.TypeToken<?> type)
Returns all apis who's contexts are assignable from the parameter
|
static com.google.common.base.Predicate<ApiMetadata> |
id(String id)
Returns all apis with the given id.
|
static com.google.common.base.Predicate<ApiMetadata> |
viewableAs(com.google.common.reflect.TypeToken<?> type)
Returns all apis who's contexts are transformable to the parameter
|
public static com.google.common.base.Predicate<ApiMetadata> all()
public static com.google.common.base.Predicate<ApiMetadata> id(String id)
id
- the id of the api to returnpublic static com.google.common.base.Predicate<RestApiMetadata> apiAssignableFrom(com.google.common.reflect.TypeToken<?> type)
type
- the type of the api to returnpublic static com.google.common.base.Predicate<ApiMetadata> contextAssignableFrom(com.google.common.reflect.TypeToken<?> type)
type
- the type of the context to search forpublic static com.google.common.base.Predicate<ApiMetadata> viewableAs(com.google.common.reflect.TypeToken<?> type)
type
- the type of the context to search forCopyright © 2009-2013 jclouds. All Rights Reserved.