public class TemporalAmountAdapter
extends java.lang.Object
implements java.io.Serializable
TemporalAmount
representation in iCalendar format.Constructor and Description |
---|
TemporalAmountAdapter(java.time.temporal.TemporalAmount duration) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static TemporalAmountAdapter |
from(Dur dur) |
static TemporalAmountAdapter |
fromDateRange(java.util.Date start,
java.util.Date end) |
java.time.temporal.TemporalAmount |
getDuration() |
java.util.Date |
getTime(java.util.Date start)
Returns a date representing the end of this duration from the specified start date.
|
int |
hashCode() |
static TemporalAmountAdapter |
parse(java.lang.String value) |
java.lang.String |
toString() |
public TemporalAmountAdapter(java.time.temporal.TemporalAmount duration)
public java.time.temporal.TemporalAmount getDuration()
public java.lang.String toString()
toString
in class java.lang.Object
public static TemporalAmountAdapter parse(java.lang.String value)
public static TemporalAmountAdapter fromDateRange(java.util.Date start, java.util.Date end)
public static TemporalAmountAdapter from(Dur dur)
public final java.util.Date getTime(java.util.Date start)
start
- the date to start the durationpublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object