Package org.jclouds.openstack.predicates
Class LinkPredicates
java.lang.Object
org.jclouds.openstack.predicates.LinkPredicates
Predicates handy when working with Link Types
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.base.Predicate
<Link> hrefEquals
(URI href) matches links of the given hrefstatic com.google.common.base.Predicate
<Link> matches links of the given relationstatic com.google.common.base.Predicate
<Link> typeEquals
(String type) matches links of the given type
-
Constructor Details
-
LinkPredicates
public LinkPredicates()
-
-
Method Details
-
relationEquals
matches links of the given relation- Parameters:
rel
- relation of the link- Returns:
- predicate that will match links of the given rel
-
hrefEquals
matches links of the given href- Parameters:
href
-- Returns:
- predicate that will match links of the given href
-
typeEquals
matches links of the given type- Parameters:
type
- ex. application/pdf- Returns:
- predicate that will match links of the given type
-