Class CohortListResponse

  • All Implemented Interfaces:
    java.io.Serializable

    public class CohortListResponse
    extends OMRSAPIPagedResponse
    CohortListResponse support an OMRS REST API response that returns a list of cohort description objects.
    See Also:
    Serialized Form
    • Constructor Detail

      • CohortListResponse

        public CohortListResponse()
        Default constructor
      • CohortListResponse

        public CohortListResponse​(CohortListResponse template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getCohorts

        public java.util.List<CohortDescription> getCohorts()
        Return the list of cohorts.
        Returns:
        entity list
      • setCohorts

        public void setCohorts​(java.util.List<CohortDescription> cohorts)
        Set up the list of cohorts.
        Parameters:
        cohorts - entity list
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class OMRSAPIPagedResponse
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class OMRSAPIPagedResponse
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Create a hash code for this element type.
        Overrides:
        hashCode in class OMRSAPIPagedResponse
        Returns:
        int hash code