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 Deprecated Methods Modifier and Type Method Description static TemporalAmountAdapter
between(Temporal t1, Temporal t2)
boolean
equals(Object o)
static TemporalAmountAdapter
from(LocalDate start, LocalDate end)
static TemporalAmountAdapter
from(Temporal start, Temporal end)
static TemporalAmountAdapter
from(Dur dur)
static TemporalAmountAdapter
fromDateRange(Date start, Date end)
TemporalAmount
getDuration()
Date
getTime(Date start)
Deprecated.useInstant.from(getDuration().addTo(start))
, where start is aTemporal
int
hashCode()
static TemporalAmountAdapter
parse(String value)
static TemporalAmountAdapter
parse(String value, boolean lenient)
Duration
toDuration()
String
toString()
String
toString(Temporal seed)
-
-
-
Constructor Detail
-
TemporalAmountAdapter
public TemporalAmountAdapter(TemporalAmount duration)
-
-
Method Detail
-
getDuration
public TemporalAmount getDuration()
-
toDuration
public Duration toDuration()
-
parse
public static TemporalAmountAdapter parse(String value)
-
parse
public static TemporalAmountAdapter parse(String value, boolean lenient)
-
from
public static TemporalAmountAdapter from(Temporal start, Temporal end)
-
from
public static TemporalAmountAdapter from(LocalDate start, LocalDate end)
-
fromDateRange
public static TemporalAmountAdapter fromDateRange(Date start, Date end)
-
from
public static TemporalAmountAdapter from(Dur dur)
-
between
public static TemporalAmountAdapter between(Temporal t1, Temporal t2)
-
getTime
@Deprecated public final Date getTime(Date start)
Deprecated.useInstant.from(getDuration().addTo(start))
, where start is aTemporal
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
-
-