Interface RankingTransformer<E extends Element>

  • Type Parameters:
    E - element class
    All Superinterfaces:
    Transformer

    public interface RankingTransformer<E extends Element>
    extends Transformer
    Ranking transformer that transforms an element based on a numerical ranking column.
    • Method Detail

      • transform

        void transform​(E element,
                       Ranking ranking,
                       Number value,
                       float normalisedValue)
        Transforms the given element based on the provided ranking parameters.

        The ranking object contains the min and max value so the ranked value can be calculated.

        Parameters:
        element - element to transform
        ranking - ranking configuration
        value - element's value for this ranking
        normalisedValue - normalised value between 0.0 and 1.0