public HalResource removeLinkWithHref ( String relation , String href ) { List < Link > links = getLinks ( relation ) ; for ( int i = 0 ; i < links . size ( ) ; i ++ ) { if ( href . equals ( links . get ( i ) . getHref ( ) ) ) { return removeLink ( relation , i ) ; } } return this ; }
Remove the link with the given relation and href