Class GenericModel


  • public class GenericModel
    extends Object

    Generic model which tries to convert a raw JSON string to classes which can be operated upon.

    Since:
    0.1.1
    • Constructor Detail

      • GenericModel

        public GenericModel​(String json)

        Default constructor.

        Parameters:
        json - the JSON to format
    • Method Detail

      • getEntries

        public Collection<Map<String,​Object>> getEntries​(Map<String,​Collection<String>> inputs)

        Retrieves all the entries matching the input criterion.

        Parameters:
        inputs - the input criterion
        Returns:
        the entries matching the input criterion
      • getEntries

        public Collection<Map<String,​Object>> getEntries​(String key,
                                                               String value)

        Retrieves all the entries matching the input criterion.

        Parameters:
        key - the key
        value - the value
        Returns:
        the entries matching the input criterion