org.jclouds.vcloud.director.v1_5.predicates
Class LinkPredicates

java.lang.Object
  extended by org.jclouds.vcloud.director.v1_5.predicates.LinkPredicates

public class LinkPredicates
extends Object

Predicates handy when working with Links

Author:
Adrian Cole

Constructor Summary
LinkPredicates()
           
 
Method Summary
static com.google.common.base.Predicate<Link> nameEquals(String name)
           
static com.google.common.base.Predicate<Link> relEquals(Link.Rel rel)
           
static com.google.common.base.Predicate<Link> relEquals(String rel)
          matches links of the given relation
static com.google.common.base.Predicate<Link> typeEquals(String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkPredicates

public LinkPredicates()
Method Detail

relEquals

public static com.google.common.base.Predicate<Link> relEquals(String rel)
matches links of the given relation

Parameters:
rel - from context.getApi().getCurrentSession().getOrg().getLinks()
Returns:
predicate that will match links of the given rel

relEquals

public static com.google.common.base.Predicate<Link> relEquals(Link.Rel rel)
See Also:
relEquals(String)

nameEquals

public static com.google.common.base.Predicate<Link> nameEquals(String name)
See Also:
ReferenceTypePredicates#nameEquals

typeEquals

public static com.google.common.base.Predicate<Link> typeEquals(String type)
See Also:
ReferenceTypePredicates#typeEquals


Copyright © 2009-2012 jclouds. All Rights Reserved.