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 Details

    • getDimension

      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:
      true if the acceptable dimension value is compatible with the dimension value.
    • getVaryHeaderValue

      String getVaryHeaderValue()
      Get the value of the Vary header.
      Returns:
      the value of the Vary header.