public List<Link> getLinksBy(final String rel, final Predicate<Link> selector) {
        return getLinksBy(rel).stream().filter(selector).collect(toList());
    }
public List < Link > getLinksBy ( final String rel , final Predicate < Link > selector ) { return getLinksBy ( rel ) . stream ( ) . filter ( selector ) . collect ( toList ( ) ) ; }
<p>
Returns the list of links having the specified link-relation type and matching the given predicate.
</p>
<p>
If CURIs are used to shorten custom link-relation types, it is possible to either use expanded link-relation types,
or the CURI of the link-relation type. Using CURIs to retrieve links is not recommended, because it
requires that the name of the CURI is known by clients.
</p>
<p>
The Predicate is used to select some of possibly several links having the same link-relation type. See
{@link LinkPredicates} for typical selections.
</p>

@param rel the link-relation type of the retrieved link.
@param selector a predicate used to select some of the links having the specified link-relation type
@return list of matching link

@see <a href="https://tools.ietf.org/html/draft-kelly-json-hal-08#section-8.2">draft-kelly-json-hal-08#section-8.2</a>
@since 1.0.0