Class GovernmentBodyAnnualOutcomeSummary

java.lang.Object
com.hack23.cia.service.external.esv.api.GovernmentBodyAnnualOutcomeSummary
All Implemented Interfaces:
Serializable

public final class GovernmentBodyAnnualOutcomeSummary extends Object implements Serializable
The Class GovernmentBodyAnnualOutcomeSummary.
See Also:
  • Constructor Details

    • GovernmentBodyAnnualOutcomeSummary

      public GovernmentBodyAnnualOutcomeSummary(String govermentBody, String orgNumber, String ministry, int year)
      Instantiates a new government body annual outcome summary.
      Parameters:
      govermentBody - the goverment body
      orgNumber - the org number
      ministry - the ministry
      year - the year
  • Method Details

    • getGovermentBody

      public String getGovermentBody()
      Gets the goverment body id.
      Returns:
      the goverment body id
    • getOrgNumber

      public String getOrgNumber()
      Gets the org number.
      Returns:
      the org number
    • getYear

      public int getYear()
      Gets the year.
      Returns:
      the year
    • getMinistry

      public String getMinistry()
      Gets the ministry.
      Returns:
      the ministry
    • addData

      public void addData(int month, Double value)
      Adds the data.
      Parameters:
      month - the month
      value - the value
    • getYearTotal

      public double getYearTotal()
      Gets the year total.
      Returns:
      the year total
    • addDescriptionField

      public void addDescriptionField(String field, String value)
      Adds the description field.
      Parameters:
      field - the field
      value - the value
    • getValueMap

      public Map<Date,Double> getValueMap()
      Gets the value map.
      Returns:
      the value map
    • getDescriptionFields

      public Map<String,String> getDescriptionFields()
      Gets the description fields.
      Returns:
      the description fields
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object