java.lang.Object
com.aoapps.hodgepodge.schedule.DayDuration
Represents a number of days.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
static DayDuration
getInstance
(int count, DayDuration.Unit unit) getUnit()
void
Offsets the given calendar by the unit and count.toString()
void
static DayDuration
Parses a duration compatible with results of toString.
-
Field Details
-
ZERO_DAYS
Some commonly used constant durations.
-
-
Constructor Details
-
DayDuration
-
-
Method Details
-
valueOf
Parses a duration compatible with results of toString. Supports:- # day
- # days
- # week
- # weeks
- # month
- # months
- # year
- # years
- See Also:
-
getInstance
-
toString
-
toString
-
getCount
public int getCount() -
getUnit
-
offset
Offsets the given calendar by the unit and count. The passed-in Calendar is modified.
-