Interface LabelHandler<VALUE,​MODIFIER>

  • Type Parameters:
    VALUE - this generic argument represents the type of value to be transformed.
    MODIFIER - this generic argument represents the type of object used to define the transformation of the passed-in object.
    All Known Implementing Classes:
    PriceLabelHandler

    public interface LabelHandler<VALUE,​MODIFIER>
    This interface allows to obtain labels for objects using transformation object.
    • Method Detail

      • getLabel

        java.lang.String getLabel​(VALUE value,
                                  MODIFIER modifier)
        Parameters:
        value - object to be labelled with the {@param modifier}.
        modifier - object used to define how the label should be calculated.
        Returns:
        a string that represents the passed-in object using the given modifier.