Class ImageInRegionToImage
- java.lang.Object
-
- org.jclouds.openstack.nova.v2_0.compute.functions.ImageInRegionToImage
-
- All Implemented Interfaces:
com.google.common.base.Function<ImageInRegion,Image>
,Function<ImageInRegion,Image>
public class ImageInRegionToImage extends Object implements com.google.common.base.Function<ImageInRegion,Image>
A function for transforming a nova-specific Image into a generic Image object.
-
-
Constructor Summary
Constructors Constructor Description ImageInRegionToImage(Map<Image.Status,Image.Status> toPortableImageStatus, com.google.common.base.Function<Image,OperatingSystem> imageToOs, com.google.common.base.Supplier<Map<String,Location>> locationIndex)
-
-
-
Constructor Detail
-
ImageInRegionToImage
@Inject public ImageInRegionToImage(Map<Image.Status,Image.Status> toPortableImageStatus, com.google.common.base.Function<Image,OperatingSystem> imageToOs, com.google.common.base.Supplier<Map<String,Location>> locationIndex)
-
-
Method Detail
-
apply
public Image apply(ImageInRegion imageInRegion)
- Specified by:
apply
in interfacecom.google.common.base.Function<ImageInRegion,Image>
- Specified by:
apply
in interfaceFunction<ImageInRegion,Image>
-
-