Interface Mapper


  • public interface Mapper
    Maps keys to values in a similar way to Map. The difference is that a mapper could be stateless, i.e. the lookup may be performed dynamically.
    See Also:
    ValueResolvers.mapperResolver()
    • Method Detail

      • appliesTo

        default boolean appliesTo​(String key)
        Parameters:
        key -
        Returns:
        true if the mapper should be applied to the specified key
      • wrap

        static Mapper wrap​(Map<String,​?> map)
        Parameters:
        map -
        Returns:
        a mapper that wraps the given map