Class MessageFormatter.NamedArgumentBinding

java.lang.Object
dk.cloudcreate.essentials.shared.MessageFormatter.NamedArgumentBinding
Enclosing class:
MessageFormatter

public static class MessageFormatter.NamedArgumentBinding extends Object
Named argument binding instance
  • Field Details

    • name

      public final String name
      The name of the argument
    • value

      public final Object value
      the value that will be inserted where ever an argument with name matching name is placed
  • Constructor Details

    • NamedArgumentBinding

      public NamedArgumentBinding(String name, Object value)
      Create a new Named argument binding
           bind("Hello {:firstName}",
                new NamedArgumentBinding("firstName", "Peter"))
       
      will return "Hello Peter"
      Parameters:
      name - The name of the argument
      value - the value that will be inserted where ever an argument with name matching name is placed
  • Method Details