Package org.killbill.billing.catalog.api
Interface Duration
-
public interface Duration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.joda.time.DateTimeaddToDateTime(org.joda.time.DateTime dateTime)org.joda.time.LocalDateaddToLocalDate(org.joda.time.LocalDate localDate)intgetNumber()TimeUnitgetUnit()org.joda.time.PeriodtoJodaPeriod()
-
-
-
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()
-
-