Class Item


  • public class Item
    extends Object
    Item
    • Constructor Detail

      • Item

        public Item()
    • Method Detail

      • getId

        public String getId()
        The value to provide in the result.
        Returns:
        id
      • setId

        public void setId​(String id)
        The value to provide in the result.
        Parameters:
        id -
      • getName

        public String getName()
        The display name.
        Returns:
        name
      • setName

        public void setName​(String name)
        The display name.
        Parameters:
        name -
      • equals

        public boolean equals​(Object o)
        Return true if this Item object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static Item fromJson​(String jsonString)
                             throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of Item given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Item
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to Item
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of Item to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException