## Uses of Class
org.restlet.data.Preference

Packages that use Preference
Package | Description
--- | ---
org.restlet.data | Information exchanged by components.
org.restlet.engine.converter | Supports the converter service.
org.restlet.engine.http.header | Supports HTTP header parsing and formatting.
org.restlet.engine.util | General utilities.
org.restlet.ext.jackson | Integration with Jackson 1.4.
org.restlet.service | Services used by applications and components.

### Uses of Preference in org.restlet.data

Methods in org.restlet.data that return types with arguments of type Preference
Modifier and Type | Method and Description
--- | ---
`java.util.List<Preference<CharacterSet>>` | ClientInfo.`getAcceptedCharacterSets()` Returns the modifiable list of character set preferences.
`java.util.List<Preference<Encoding>>` | ClientInfo.`getAcceptedEncodings()` Returns the modifiable list of encoding preferences.
`java.util.List<Preference<Language>>` | ClientInfo.`getAcceptedLanguages()` Returns the modifiable list of language preferences.
`java.util.List<Preference<MediaType>>` | ClientInfo.`getAcceptedMediaTypes()` Returns the modifiable list of media type preferences.

Method parameters in org.restlet.data with type arguments of type Preference
Modifier and Type | Method and Description
--- | ---
`void` | ClientInfo.`setAcceptedCharacterSets(java.util.List<Preference<CharacterSet>> acceptedCharacterSets)` Sets the character set preferences.
`void` | ClientInfo.`setAcceptedEncodings(java.util.List<Preference<Encoding>> acceptedEncodings)` Sets the encoding preferences.
`void` | ClientInfo.`setAcceptedLanguages(java.util.List<Preference<Language>> acceptedLanguages)` Sets the language preferences.
`void` | ClientInfo.`setAcceptedMediaTypes(java.util.List<Preference<MediaType>> acceptedMediaTypes)` Sets the media type preferences.

### Uses of Preference in org.restlet.engine.converter

Method parameters in org.restlet.engine.converter with type arguments of type Preference
Modifier and Type | Method and Description
--- | ---
`<T> void` | ConverterHelper.`updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)` Updates the preferences of the given `ClientInfo` object with conversion capabilities for the given entity class.
`<T> void` | DefaultConverter.`updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)`
`void` | ConverterHelper.`updatePreferences(java.util.List<Preference<MediaType>> preferences, MediaType mediaType, float score)` Updates the preferences of the given `ClientInfo` object with conversion capabilities for the given entity class.

### Uses of Preference in org.restlet.engine.http.header

Methods in org.restlet.engine.http.header that return Preference
Modifier and Type | Method and Description
--- | ---
`protected Preference<T>` | PreferenceReader.`createPreference(java.lang.CharSequence metadata, Series<Parameter> parameters)` Creates a new preference.
`Preference<T>` | PreferenceReader.`readValue()` Read the next preference.

Methods in org.restlet.engine.http.header with parameters of type Preference
Modifier and Type | Method and Description
--- | ---
`PreferenceWriter` | PreferenceWriter.`append(Preference<?> pref)`

### Uses of Preference in org.restlet.engine.util

Methods in org.restlet.engine.util that return types with arguments of type Preference
Modifier and Type | Method and Description
--- | ---
`protected java.util.List<Preference<CharacterSet>>` | Conneg.`getCharacterSetPrefs()` Returns the enriched list of character set preferences.
`protected java.util.List<Preference<Encoding>>` | Conneg.`getEncodingPrefs()` Returns the enriched list of encoding preferences.
`protected <T extends Metadata> java.util.List<Preference<T>>` | Conneg.`getEnrichedPreferences(java.util.List<Preference<T>> userPreferences, T defaultValue, T allValue)` Returns an enriched list of preferences.
`protected java.util.List<Preference<Language>>` | Conneg.`getLanguagePrefs()` Returns the enriched list of language preferences.
`protected java.util.List<Preference<MediaType>>` | Conneg.`getMediaTypePrefs()` Returns the enriched list of media type preferences.

Method parameters in org.restlet.engine.util with type arguments of type Preference
Modifier and Type | Method and Description
--- | ---
`protected <T extends Metadata> java.util.List<Preference<T>>` | Conneg.`getEnrichedPreferences(java.util.List<Preference<T>> userPreferences, T defaultValue, T allValue)` Returns an enriched list of preferences.
`static <T extends Metadata> T` | ConnegUtils.`getPreferredMetadata(java.util.List<T> supported, java.util.List<Preference<T>> preferences)` Returns the preferred metadata taking into account both metadata supported by the server and client preferences.

### Uses of Preference in org.restlet.ext.jackson

Method parameters in org.restlet.ext.jackson with type arguments of type Preference
Modifier and Type | Method and Description
--- | ---
`<T> void` | JacksonConverter.`updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<T> entity)`

### Uses of Preference in org.restlet.service

Method parameters in org.restlet.service with type arguments of type Preference
Modifier and Type | Method and Description
--- | ---
`void` | ConverterService.`updatePreferences(java.util.List<Preference<MediaType>> preferences, java.lang.Class<?> entity)` Updates the media type preferences with available conversion capabilities for the given entity class.