Class OneWayLabelMapper<M,​V extends ItemViewModel>

    • Constructor Detail

      • OneWayLabelMapper

        public OneWayLabelMapper​(ILabelProvider labelProvider)
        Create a new instance with the given labelProvider.
        Parameters:
        labelProvider - the labelProvider
    • Method Detail

      • createModelToView

        protected V createModelToView​(M modelValue)
        Description copied from class: OneWayMapper
        Creates the view value if it's not found in the cache.
        Specified by:
        createModelToView in class OneWayMapper<M,​V extends ItemViewModel>
        Parameters:
        modelValue - the model value to create mapping for.
        Returns:
        created view value.
      • doCreateModelToView

        protected abstract V doCreateModelToView​(M modelValue)
        Creates the actual view model instance.
        Parameters:
        modelValue - the model value
        Returns:
        the projected view model