Class Responses


  • public class Responses
    extends Object
    Responses Model to store the Responses that will be sent to the user.
    See Also:
    ModelMap, Map, HashMap, List
    • Constructor Detail

      • Responses

        public Responses​(String name,
                         String lang)
        Response Constructor that takes two parameters
        Parameters:
        name - String representing the response category name of the result
        lang - String representing the key of the HashMap used to store the responses : values
    • Method Detail

      • add

        public Responses add​(String str)
        adding a new element to the hashMap using the language entered as a parameter to the constructor
        Parameters:
        str - a String representing the value to insert to the response category name
        Returns:
        Responses returns the instance called to be used to call the function add once again.