Class AbstractMapToString

    • Constructor Detail

      • AbstractMapToString

        public AbstractMapToString()
    • Method Detail

      • check

        protected String check​(Map map)
        Checks the map before converting it.
        Parameters:
        map - the map to check
        Returns:
        null if checks passed, otherwise error message
      • toString

        protected abstract String toString​(Map map)
        Converts the map into a string.
        Parameters:
        map - the map to convert
        Returns:
        the generated string
      • mapToString

        public String mapToString​(Map map)
        Converts the map into a string.
        Specified by:
        mapToString in interface MapToString
        Parameters:
        map - the map to convert
        Returns:
        the generated string