Class MessageSourceUtils

java.lang.Object
io.micronaut.context.MessageSourceUtils

public class MessageSourceUtils extends Object
Utility class used by MessageSource to create variables maps.
Since:
3.4.0
Author:
Sergio del Amo
  • Constructor Details

    • MessageSourceUtils

      public MessageSourceUtils()
  • Method Details

    • variables

      @NonNull public static @NonNull Map<String,Object> variables(@NonNull @NonNull 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.