Interface VariantSelector.DimensionChecker<T,U>
-
- Enclosing class:
- VariantSelector
private static interface VariantSelector.DimensionChecker<T,U>Interface to get a dimension value from a variant and check if an acceptable dimension value is compatible with a dimension value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description UgetDimension(VariantSelector.VariantHolder v)Get the dimension value from the variant.intgetQualitySource(VariantSelector.VariantHolder v, U u)Get the quality source of the dimension.java.lang.StringgetVaryHeaderValue()Get the value of the Vary header.booleanisCompatible(T t, U u)Ascertain if the acceptable dimension value is compatible with the dimension value.
-
-
-
Method Detail
-
getDimension
U getDimension(VariantSelector.VariantHolder v)
Get the dimension value from the variant.- Parameters:
v- the variant.- Returns:
- the dimension value.
-
getQualitySource
int getQualitySource(VariantSelector.VariantHolder v, U u)
Get the quality source of the dimension.- Returns:
- quality source.
-
isCompatible
boolean isCompatible(T t, U u)
Ascertain if the acceptable dimension value is compatible with the dimension value.- Parameters:
t- the acceptable dimension value.u- the dimension value.- Returns:
trueif the acceptable dimension value is compatible with the dimension value.
-
getVaryHeaderValue
java.lang.String getVaryHeaderValue()
Get the value of the Vary header.- Returns:
- the value of the Vary header.
-
-