Class Model


  • public class Model
    extends Object
    Helper to create model map of key value pairs.
    • Constructor Detail

      • Model

        public Model()
    • Method Detail

      • toMap

        public static Map<String,​Object> toMap​(String key,
                                                     Object val,
                                                     Object... others)
        Convert the arguments into a map of String keys to Object values.
        Parameters:
        key - The first key
        val - The first value
        others - Other key values where the key should be a string
        Returns:
        The map of key value pairs