code: public static Predicate<Link> havingType(final String type) {
          return link -> type.equals(link.getType());
      }
docs: Returns a Predicate that is matching links having the specified type {@link Link#getType() type}
  
  @param type the expected media type of the link
  @return Predicate used to select links