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 Detail

      • getDimension

        U getDimension​(VariantSelector.VariantHolder v)
        Get the dimension value from the variant.
        Parameters:
        v - the variant.
        Returns:
        the dimension value.
      • 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

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