public class TemporalAmountAdapter extends Object implements Serializable
TemporalAmount
representation in iCalendar format.Constructor and Description |
---|
TemporalAmountAdapter(TemporalAmount duration) |
Modifier and Type | Method and Description |
---|---|
static TemporalAmountAdapter |
between(Temporal t1,
Temporal t2) |
boolean |
equals(Object o) |
static TemporalAmountAdapter |
from(Dur dur) |
static TemporalAmountAdapter |
from(Temporal start,
Temporal end) |
static TemporalAmountAdapter |
fromDateRange(Date start,
Date end) |
TemporalAmount |
getDuration() |
Date |
getTime(Date start)
Deprecated.
use
Instant.from(getDuration().addTo(start)) , where start is a Temporal |
int |
hashCode() |
static TemporalAmountAdapter |
parse(String value) |
Duration |
toDuration() |
String |
toString() |
public TemporalAmountAdapter(TemporalAmount duration)
public TemporalAmount getDuration()
public Duration toDuration()
public static TemporalAmountAdapter parse(String value)
public static TemporalAmountAdapter from(Temporal start, Temporal end)
public static TemporalAmountAdapter fromDateRange(Date start, Date end)
public static TemporalAmountAdapter from(Dur dur)
public static TemporalAmountAdapter between(Temporal t1, Temporal t2)
@Deprecated public final Date getTime(Date start)
Instant.from(getDuration().addTo(start))
, where start is a Temporal
start
- the date to start the duration