Package org.jclouds.openstack.predicates
Class LinkPredicates
- java.lang.Object
-
- org.jclouds.openstack.predicates.LinkPredicates
-
public class LinkPredicates extends Object
Predicates handy when working with Link Types
-
-
Constructor Summary
Constructors Constructor Description LinkPredicates()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.google.common.base.Predicate<Link>hrefEquals(URI href)matches links of the given hrefstatic com.google.common.base.Predicate<Link>relationEquals(Link.Relation rel)matches links of the given relationstatic com.google.common.base.Predicate<Link>typeEquals(String type)matches links of the given type
-
-
-
Method Detail
-
relationEquals
public static com.google.common.base.Predicate<Link> relationEquals(Link.Relation rel)
matches links of the given relation- Parameters:
rel- relation of the link- Returns:
- predicate that will match links of the given rel
-
hrefEquals
public static com.google.common.base.Predicate<Link> hrefEquals(URI href)
matches links of the given href- Parameters:
href-- Returns:
- predicate that will match links of the given href
-
-