public void setThumbnail ( final Link newthumbnail ) { Link old = null ; for ( final Link l : getOtherLinks ( ) ) { if ( "thumbnail" . equals ( l . getRel ( ) ) ) { old = l ; break ; } } if ( old != null ) { getOtherLinks ( ) . remove ( old ) ; newthumbnail . setRel ( "thumbnail" ) ; } getOtherLinks ( ) . add ( newthumbnail ) ; }
Set the value of thumbnail