Class MapResolver


  • public class MapResolver
    extends Resolver<java.lang.Object>
    Resolves variable values based on a map.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​?> map
      The variables to use when formatting.
    • Constructor Summary

      Constructors 
      Constructor Description
      MapResolver​(java.util.Map<java.lang.String,​?> map)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object resolve​(java.lang.String variableName)
      Resolves a name into a value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • map

        private final java.util.Map<java.lang.String,​?> map
        The variables to use when formatting.
    • Constructor Detail

      • MapResolver

        public MapResolver​(java.util.Map<java.lang.String,​?> map)
        Constructor.
        Parameters:
        map - The variables to use when formatting.
    • Method Detail

      • resolve

        public java.lang.Object resolve​(java.lang.String variableName)
        Description copied from class: Resolver
        Resolves a name into a value.
        Specified by:
        resolve in class Resolver<java.lang.Object>
        Parameters:
        variableName - The name to resolve.
        Returns:
        The resolved value.