src/main/java/de/digitalcollections/iiif/model/sharedcanvas/Resource.java
public Resource addViewingHint(ViewingHint first, ViewingHint... rest) throws IllegalArgumentException {
    List<ViewingHint> hints = this.viewingHints;
    if (hints == null) {
      hints = new ArrayList<>();
    }
    hints.addAll(Lists.asList(first, rest));
    this.setViewingHints(hints);
    return this;
  }
public Resource addViewingHint(ViewingHint first, ViewingHint... rest) throws IllegalArgumentException {
    List<ViewingHint> hints = this.viewingHints;
    if (hints == null) {
      hints = new ArrayList<>();
    }
    hints.addAll(Lists.asList(first, rest));
    this.setViewingHints(hints);
    return this;
  }
public Resource addViewingHint ( ViewingHint first , ViewingHint ... rest ) throws IllegalArgumentException { List < ViewingHint > hints = this . viewingHints ; if ( hints == null ) { hints = new ArrayList <> ( ) ; } hints . addAll ( Lists . asList ( first , rest ) ) ; this . setViewingHints ( hints ) ; return this ; }
Add one or more viewing hints for this resource.

@param first first viewing hint to add
@param rest list of second and more viewing hints
@return this resource with added viewing hints
@throws IllegalArgumentException if the resources not not support one of the viewing hints.
Add one or more viewing hints for this resource .