src/main/java/de/digitalcollections/iiif/model/sharedcanvas/Resource.java
public void setRenderings(List<OtherContent> renderings) throws IllegalArgumentException {
    renderings.forEach(this::verifyRendering);
    this.renderings = renderings;
  }
public void setRenderings(List<OtherContent> renderings) throws IllegalArgumentException {
    renderings.forEach(this::verifyRendering);
    this.renderings = renderings;
  }
public void setRenderings ( List < OtherContent > renderings ) throws IllegalArgumentException { renderings . forEach ( this :: verifyRendering ) ; this . renderings = renderings ; }
Sets the renderings. All renderings must have both a profile and a format.

@param renderings list of renderings with profile and format
@throws IllegalArgumentException if at least one rendering does not have both a profile and a format.
Sets the renderings . All renderings must have both a profile and a format .