Package org.jclouds.apis
Class ApiPredicates
java.lang.Object
org.jclouds.apis.ApiPredicates
Container for api filters (predicates).
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.base.Predicate<ApiMetadata> all()Returns all apis available to jclouds regardless of 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 parameterstatic com.google.common.base.Predicate<ApiMetadata> 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 
- 
Constructor Details
- 
ApiPredicates
public ApiPredicates() 
 - 
 - 
Method Details
- 
all
Returns all apis available to jclouds regardless of type.- Returns:
 - all available apis
 
 - 
id
Returns all apis with the given id.- Parameters:
 id- the id of the api to return- Returns:
 - the apis with the given id
 
 - 
contextAssignableFrom
public 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- Parameters:
 type- the type of the context to search for- Returns:
 - the apis with contexts assignable from given type
 
 - 
viewableAs
public 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- Parameters:
 type- the type of the context to search for- Returns:
 - the apis with contexts transformable to the given type
 
 
 -