org.jclouds.joyent.cloudapi.v6_5.compute.functions
Class PackageInDatacenterToHardware

java.lang.Object
  extended by org.jclouds.joyent.cloudapi.v6_5.compute.functions.PackageInDatacenterToHardware
All Implemented Interfaces:
com.google.common.base.Function<PackageInDatacenter,Hardware>

public class PackageInDatacenterToHardware
extends Object
implements com.google.common.base.Function<PackageInDatacenter,Hardware>

A function for transforming the cloudApi specific PackageInDatacenter object to the generic Hardware object.

Author:
Adrian Cole

Constructor Summary
PackageInDatacenterToHardware(com.google.common.base.Supplier<Map<String,Location>> locationIndex)
           
 
Method Summary
 Hardware apply(PackageInDatacenter pkgInDatacenter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

PackageInDatacenterToHardware

@Inject
public PackageInDatacenterToHardware(com.google.common.base.Supplier<Map<String,Location>> locationIndex)
Method Detail

apply

public Hardware apply(PackageInDatacenter pkgInDatacenter)
Specified by:
apply in interface com.google.common.base.Function<PackageInDatacenter,Hardware>


Copyright © 2009-2012 jclouds. All Rights Reserved.