public static Prefer ofOmit ( final String ... omits ) { final List < String > iris = asList ( omits ) ; if ( iris . isEmpty ( ) ) { return valueOf ( join ( "=" , PREFER_RETURN , PREFER_REPRESENTATION ) ) ; } return valueOf ( join ( "=" , PREFER_RETURN , PREFER_REPRESENTATION ) + "; " + PREFER_OMIT + "=\"" + iris . stream ( ) . collect ( joining ( " " ) ) + "\"" ) ; }
Build a Prefer object with a set of omitted IRIs .