Class PeriodsResponse<T extends AbstractPeriod>

    • Constructor Detail

      • PeriodsResponse

        public PeriodsResponse​(AerisDataJSON data,
                               Class<T> clazz)
        Period response constructor that needs
        Parameters:
        data - data to pass to the AerisFriendlyResponse
        clazz - the class type of the AbstractPeriod to be able to instantiate the generic
    • Method Detail

      • getPeriods

        public List<T> getPeriods()
        Gets the list of the periods.
        Returns:
        The list of the Period.
      • getPeriodsSize

        public int getPeriodsSize()
        Get the number of periods
        Returns:
        the number of periods.
      • getPeriod

        public T getPeriod​(int index)
        Get a period from the list
        Parameters:
        index - to grab from the list of periods.
        Returns:
        The period