Class MessageSourceUtils


  • public class MessageSourceUtils
    extends java.lang.Object
    Utility class used by MessageSource to create variables maps.
    Since:
    3.4.0
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Map<java.lang.String,​java.lang.Object> variables​(java.lang.Object... args)
      Returns a Map whose keys are the index of the varargs.
      • Methods inherited from class java.lang.Object

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

      • MessageSourceUtils

        public MessageSourceUtils()
    • Method Detail

      • variables

        @NonNull
        public static java.util.Map<java.lang.String,​java.lang.Object> variables​(@NonNull
                                                                                       java.lang.Object... args)
        Returns a Map whose keys are the index of the varargs. E.g. for "Sergio", "John" the map ["0" => "Sergio", "1" => "John"] is returned
        Parameters:
        args - variables
        Returns:
        The variables map.