public List<Link> getLinks(String relation) {

		Assert.hasText(relation, "Link relation must not be null or empty!");

		return links.stream() //
				.filter(link -> link.hasRel(relation)) //
				.collect(Collectors.toList());
	}
public List < Link > getLinks ( String relation ) { Assert . hasText ( relation , "Link relation must not be null or empty!" ) ; return links . stream ( ) . filter ( link -> link . hasRel ( relation ) ) . collect ( Collectors . toList ( ) ) ; }
Returns all {@link Link}s with the given relation.

@param relation must not be {@literal null}.
@return the links in a {@link List}