@Test void testPrefer() { final Prefer prefer = ofInclude(URL); assertAll(CHECK_SIMPLE_PARSING, checkPreferInclude(prefer, URL)); }
public Prefer(final String preference, final List<String> include, final List<String> omit, final Set<String> params, final String handling) { this.preference = PREFER_MINIMAL.equals(preference) || PREFER_REPRESENTATION.equals(preference) ? preference : null; this.handling = PREFER_LENIENT.equals(handling) || PREFER_STRICT.equals(handling) ? handling : null; this.include = include != null ? unmodifiableList(include) : emptyList(); this.omit = omit != null ? unmodifiableList(omit) : emptyList(); this.params = params != null ? unmodifiableSet(params) : emptySet(); }
Prefer { public Prefer(final String preference, final List<String> include, final List<String> omit, final Set<String> params, final String handling) { this.preference = PREFER_MINIMAL.equals(preference) || PREFER_REPRESENTATION.equals(preference) ? preference : null; this.handling = PREFER_LENIENT.equals(handling) || PREFER_STRICT.equals(handling) ? handling : null; this.include = include != null ? unmodifiableList(include) : emptyList(); this.omit = omit != null ? unmodifiableList(omit) : emptyList(); this.params = params != null ? unmodifiableSet(params) : emptySet(); } }
Prefer { public Prefer(final String preference, final List<String> include, final List<String> omit, final Set<String> params, final String handling) { this.preference = PREFER_MINIMAL.equals(preference) || PREFER_REPRESENTATION.equals(preference) ? preference : null; this.handling = PREFER_LENIENT.equals(handling) || PREFER_STRICT.equals(handling) ? handling : null; this.include = include != null ? unmodifiableList(include) : emptyList(); this.omit = omit != null ? unmodifiableList(omit) : emptyList(); this.params = params != null ? unmodifiableSet(params) : emptySet(); } Prefer(final String preference, final List<String> include, final List<String> omit,
            final Set<String> params, final String handling); }
Prefer { public Prefer(final String preference, final List<String> include, final List<String> omit, final Set<String> params, final String handling) { this.preference = PREFER_MINIMAL.equals(preference) || PREFER_REPRESENTATION.equals(preference) ? preference : null; this.handling = PREFER_LENIENT.equals(handling) || PREFER_STRICT.equals(handling) ? handling : null; this.include = include != null ? unmodifiableList(include) : emptyList(); this.omit = omit != null ? unmodifiableList(omit) : emptyList(); this.params = params != null ? unmodifiableSet(params) : emptySet(); } Prefer(final String preference, final List<String> include, final List<String> omit,
            final Set<String> params, final String handling); static Prefer valueOf(final String value); Optional<String> getPreference(); Optional<String> getHandling(); boolean getRespondAsync(); List<String> getInclude(); List<String> getOmit(); @Override String toString(); static Prefer ofInclude(final String... includes); static Prefer ofOmit(final String... omits); }
Prefer { public Prefer(final String preference, final List<String> include, final List<String> omit, final Set<String> params, final String handling) { this.preference = PREFER_MINIMAL.equals(preference) || PREFER_REPRESENTATION.equals(preference) ? preference : null; this.handling = PREFER_LENIENT.equals(handling) || PREFER_STRICT.equals(handling) ? handling : null; this.include = include != null ? unmodifiableList(include) : emptyList(); this.omit = omit != null ? unmodifiableList(omit) : emptyList(); this.params = params != null ? unmodifiableSet(params) : emptySet(); } Prefer(final String preference, final List<String> include, final List<String> omit,
            final Set<String> params, final String handling); static Prefer valueOf(final String value); Optional<String> getPreference(); Optional<String> getHandling(); boolean getRespondAsync(); List<String> getInclude(); List<String> getOmit(); @Override String toString(); static Prefer ofInclude(final String... includes); static Prefer ofOmit(final String... omits); static final String PREFER_REPRESENTATION; static final String PREFER_MINIMAL; static final String PREFER_STRICT; static final String PREFER_LENIENT; static final String PREFER_RETURN; static final String PREFER_INCLUDE; static final String PREFER_OMIT; static final String PREFER_HANDLING; }