Package org.jclouds.compute.predicates
Class ImagePredicates
- java.lang.Object
-
- org.jclouds.compute.predicates.ImagePredicates
-
public class ImagePredicates extends Object
Container for image filters (predicates). This class has static methods that create customized predicates to use withComputeService
.
-
-
Constructor Summary
Constructors Constructor Description ImagePredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.base.Predicate<Image>
any()
return everything.static com.google.common.base.Predicate<Image>
idEquals(String id)
evaluates true if the Imagestatic com.google.common.base.Predicate<Image>
idIn(Iterable<String> ids)
evaluates true if the Image id is in the supplied setstatic com.google.common.base.Predicate<Image>
is64Bit()
return true if this is a 64bit image.static com.google.common.base.Predicate<Image>
userMetadataContains(String key, String value)
evaluates true if the Image metadata contains the following values
-
-
-
Method Detail
-
idIn
public static com.google.common.base.Predicate<Image> idIn(Iterable<String> ids)
evaluates true if the Image id is in the supplied set- Parameters:
ids
- ids of the images- Returns:
- predicate
-
userMetadataContains
public static com.google.common.base.Predicate<Image> userMetadataContains(String key, String value)
evaluates true if the Image metadata contains the following values- Parameters:
key
- key in Image#getUserMetadatavalue
- value in Image#getUserMetadata- Returns:
- predicate
-
idEquals
public static com.google.common.base.Predicate<Image> idEquals(String id)
evaluates true if the Image- Parameters:
ids
- ids of the images- Returns:
- predicate
-
is64Bit
public static com.google.common.base.Predicate<Image> is64Bit()
return true if this is a 64bit image.
-
any
public static com.google.common.base.Predicate<Image> any()
return everything.
-
-