Package net.fortuna.ical4j.model
Class TemporalAmountAdapter
- java.lang.Object
-
- net.fortuna.ical4j.model.TemporalAmountAdapter
-
- All Implemented Interfaces:
Serializable
public class TemporalAmountAdapter extends Object implements Serializable
Support adapter forTemporalAmountrepresentation in iCalendar format.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TemporalAmountAdapter(TemporalAmount duration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static TemporalAmountAdapterfrom(Dur dur)static TemporalAmountAdapterfromDateRange(Date start, Date end)TemporalAmountgetDuration()DategetTime(Date start)Returns a date representing the end of this duration from the specified start date.inthashCode()static TemporalAmountAdapterparse(String value)static TemporalAmountAdapterparse(String value, boolean lenient)StringtoString()StringtoString(Temporal seed)
-
-
-
Constructor Detail
-
TemporalAmountAdapter
public TemporalAmountAdapter(TemporalAmount duration)
-
-
Method Detail
-
getDuration
public TemporalAmount getDuration()
-
parse
public static TemporalAmountAdapter parse(String value)
-
parse
public static TemporalAmountAdapter parse(String value, boolean lenient)
-
fromDateRange
public static TemporalAmountAdapter fromDateRange(Date start, Date end)
-
from
public static TemporalAmountAdapter from(Dur dur)
-
getTime
public final Date getTime(Date start)
Returns a date representing the end of this duration from the specified start date.- Parameters:
start- the date to start the duration- Returns:
- the end of the duration as a date
-
-