public Resource addRendering ( OtherContent first , OtherContent ... rest ) { if ( renderings == null ) { this . renderings = new ArrayList <> ( ) ; } List < OtherContent > renderingsToAdd = Lists . asList ( first , rest ) ; renderingsToAdd . forEach ( this :: verifyRendering ) ; this . renderings . addAll ( renderingsToAdd ) ; return this ; }
Add one or more renderings . All renderings must have both a profile and a format .