public class PreferenceResolver
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
MULTI_BEST_MATCHING |
Constructor and Description |
---|
PreferenceResolver() |
Modifier and Type | Method and Description |
---|---|
static CdmPreference |
resolve(java.util.List<CdmPreference> preferences,
CdmPreference.PrefKey key)
Returns the best matching
preference for the
given preference list and for the given preference key
or null if none is matching.A preference is matching if the preference key is matching the given key. |
protected static final java.lang.String MULTI_BEST_MATCHING
public static CdmPreference resolve(java.util.List<CdmPreference> preferences, CdmPreference.PrefKey key) throws java.lang.IllegalArgumentException
preference
for the
given preference list and for the given preference key
or null
if none is matching.predicates
are
equal and if the given subject
matches
the preferences subject.null
, null
is returned.java.lang.IllegalArgumentException
- if the given preferences list contains 2 preference
with completely equal best matching keys but with different values.Copyright © 2007-2020 EDIT. All Rights Reserved.