Interface Duration


  • public interface Duration
    • Method Detail

      • getUnit

        TimeUnit getUnit()
        Returns:
        the TimeUnit
      • getNumber

        int getNumber()
        Returns:
        the number of units
      • addToDateTime

        org.joda.time.DateTime addToDateTime​(org.joda.time.DateTime dateTime)
                                      throws CatalogApiException
        Parameters:
        dateTime - the date to add to that duration
        Returns:
        the joda DateTime
        Throws:
        CatalogApiException
      • addToLocalDate

        org.joda.time.LocalDate addToLocalDate​(org.joda.time.LocalDate localDate)
                                        throws CatalogApiException
        Parameters:
        localDate - the date to add to that duration
        Returns:
        the joda LocalDate
        Throws:
        CatalogApiException
      • toJodaPeriod

        org.joda.time.Period toJodaPeriod()