org.jclouds.softlayer.compute.functions
Class ProductItems

java.lang.Object
  extended by org.jclouds.softlayer.compute.functions.ProductItems

public class ProductItems
extends Object


Constructor Summary
ProductItems()
           
 
Method Summary
static com.google.common.base.Function<ProductItem,Float> capacity()
          Creates a function to get the capacity from a product item.
static com.google.common.base.Function<ProductItem,String> description()
          Creates a function to get the description from a product item.
static com.google.common.base.Function<ProductItemPrice,ProductItem> item()
          Creates a function to get the ProductItem for the ProductItemPrice.
static com.google.common.base.Function<ProductItem,ProductItemPrice> price()
          Creates a function to get the ProductItemPrice for the ProductItem.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductItems

public ProductItems()
Method Detail

capacity

public static com.google.common.base.Function<ProductItem,Float> capacity()
Creates a function to get the capacity from a product item.


description

public static com.google.common.base.Function<ProductItem,String> description()
Creates a function to get the description from a product item.


price

public static com.google.common.base.Function<ProductItem,ProductItemPrice> price()
Creates a function to get the ProductItemPrice for the ProductItem. Currently returns the first price. This will need to be changed if more than one price is returned.


item

public static com.google.common.base.Function<ProductItemPrice,ProductItem> item()
Creates a function to get the ProductItem for the ProductItemPrice. Copies the category information from the price to the item if necessary The ProductItemPrices must have ProductItems.



Copyright © 2009-2011 jclouds. All Rights Reserved.