Class LinkPredicates


  • public class LinkPredicates
    extends Object
    Predicates handy when working with Link Types
    • Constructor Detail

      • LinkPredicates

        public LinkPredicates()
    • 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
      • typeEquals

        public static com.google.common.base.Predicate<Link> typeEquals​(String type)
        matches links of the given type
        Parameters:
        type - ex. application/pdf
        Returns:
        predicate that will match links of the given type