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 forTemporalAmount
representation 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 boolean
equals(Object o)
static TemporalAmountAdapter
from(Dur dur)
static TemporalAmountAdapter
fromDateRange(Date start, Date end)
TemporalAmount
getDuration()
Date
getTime(Date start)
Returns a date representing the end of this duration from the specified start date.int
hashCode()
static TemporalAmountAdapter
parse(String value)
String
toString()
String
toString(Temporal seed)
-
-
-
Constructor Detail
-
TemporalAmountAdapter
public TemporalAmountAdapter(TemporalAmount duration)
-
-
Method Detail
-
getDuration
public TemporalAmount getDuration()
-
parse
public static TemporalAmountAdapter parse(String value)
-
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
-
-