@Singleton public class ProductItemsToHardware extends Object implements com.google.common.base.Function<Iterable<ProductItem>,Hardware>
Constructor and Description |
---|
ProductItemsToHardware() |
ProductItemsToHardware(Pattern cpuDescriptionRegex,
Pattern diskCategoryRegex) |
Modifier and Type | Method and Description |
---|---|
Hardware |
apply(Iterable<ProductItem> items) |
static com.google.common.base.Function<List<ProductItem>,String> |
hardwareId()
Generates a hardwareId based on the priceId's of the items in the list
|
public Hardware apply(Iterable<ProductItem> items)
apply
in interface com.google.common.base.Function<Iterable<ProductItem>,Hardware>
public static com.google.common.base.Function<List<ProductItem>,String> hardwareId()
Copyright © 2009-2013 jclouds. All Rights Reserved.