Class GrantOffers


  • public class GrantOffers
    extends Object
    GrantOffers
    • Constructor Detail

      • GrantOffers

        public GrantOffers()
    • Method Detail

      • getGrantOffers

        public List<GrantOffer> getGrantOffers()
        A list of available grant offers.
        Returns:
        grantOffers
      • setGrantOffers

        public void setGrantOffers​(List<GrantOffer> grantOffers)
      • hashCode

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

        public static void validateJsonObject​(com.google.gson.JsonObject jsonObj)
                                       throws IOException
        Validates the JSON Object and throws an exception if issues found
        Parameters:
        jsonObj - JSON Object
        Throws:
        IOException - if the JSON Object is invalid with respect to GrantOffers
      • fromJson

        public static GrantOffers fromJson​(String jsonString)
                                    throws IOException
        Create an instance of GrantOffers given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of GrantOffers
        Throws:
        IOException - if the JSON string is invalid with respect to GrantOffers
      • toJson

        public String toJson()
        Convert an instance of GrantOffers to an JSON string
        Returns:
        JSON string