public class ProductItemPredicates extends Object
Constructor and Description |
---|
ProductItemPredicates() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Predicate<ProductItem> |
capacity(Float capacity)
Tests if the ProductItem has the required capacity.
|
static com.google.common.base.Predicate<ProductItem> |
categoryCode(String category)
Tests if the ProductItem contains the required category.
|
static com.google.common.base.Predicate<ProductItem> |
categoryCodeMatches(Pattern category)
Tests if the ProductItem contains a category that matches the supplied Pattern
|
static com.google.common.base.Predicate<ProductItem> |
matches(Pattern regex)
Tests if the ProductItem's description matches the supplied regular expression.
|
static com.google.common.base.Predicate<ProductItem> |
units(String units)
Tests if the ProductItem has the required units.
|
public static com.google.common.base.Predicate<ProductItem> categoryCode(String category)
category
- public static com.google.common.base.Predicate<ProductItem> categoryCodeMatches(Pattern category)
category
- public static com.google.common.base.Predicate<ProductItem> capacity(Float capacity)
capacity
- public static com.google.common.base.Predicate<ProductItem> units(String units)
units
- public static com.google.common.base.Predicate<ProductItem> matches(Pattern regex)
regex
- a regular expression to match against.PatternSyntaxException
- if the regex is invalidCopyright © 2009-2012 jclouds. All Rights Reserved.