Class DialogTemplateParameterSupplier

  • All Implemented Interfaces:
    java.util.function.Supplier<java.lang.Object[]>

    public class DialogTemplateParameterSupplier
    extends java.lang.Object
    implements java.util.function.Supplier<java.lang.Object[]>
    Supplier function to provide the parameter array for dialog templates.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2017 Created on Jul 08, 2017
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Object[] params  
    • Constructor Summary

      Constructors 
      Constructor Description
      DialogTemplateParameterSupplier​(java.lang.Object[] params)
      The parameters that are supplied to the dialog template to resolve the message.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object[] get()  
      • Methods inherited from class java.lang.Object

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

      • params

        private final java.lang.Object[] params
    • Constructor Detail

      • DialogTemplateParameterSupplier

        public DialogTemplateParameterSupplier​(java.lang.Object[] params)
        The parameters that are supplied to the dialog template to resolve the message. The arguments in the list are either values (constant) or Supplier themself, which will be evaluated when this Supplier value is retrieved.
        Parameters:
        params - array of parameters to be used in the dialog template.
    • Method Detail

      • get

        public java.lang.Object[] get()
        Specified by:
        get in interface java.util.function.Supplier<java.lang.Object[]>