public static enum VEvent.EndType extends java.lang.Enum<VEvent.EndType>
Modifier and Type | Method and Description |
---|---|
abstract java.time.temporal.TemporalAmount |
getDuration(VEvent<?,?> vEvent)
Gets duration, either from DURATION property, or by calculating duration between
DTSTART and DTEND
|
abstract void |
setDuration(VEvent<?,?> vEvent,
java.time.temporal.TemporalAmount amount)
Sets the DURATION or DTEND, of the vEvent depending on the EndType value vEvent contains.
|
abstract void |
setDuration(VEvent<?,?> vEvent,
java.time.temporal.Temporal startInclusive,
java.time.temporal.Temporal endExclusive)
Sets the DURATION or DTEND, of the vEvent depending on the EndType value vEvent contains.
|
static VEvent.EndType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static VEvent.EndType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VEvent.EndType DURATION
public static final VEvent.EndType DTEND
public static VEvent.EndType[] values()
for (VEvent.EndType c : VEvent.EndType.values()) System.out.println(c);
public static VEvent.EndType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract void setDuration(VEvent<?,?> vEvent, java.time.temporal.TemporalAmount amount)
Sets the DURATION or DTEND, of the vEvent depending on the EndType value vEvent contains. If the EndType is DTEND it is calculated by adding the amount to DTSTART. Otherwise, DURATION is simply set to amount
vEvent
- - VEvent to modifyamount
- - TemporalAmount for duration or calculations for DTSTARTpublic abstract void setDuration(VEvent<?,?> vEvent, java.time.temporal.Temporal startInclusive, java.time.temporal.Temporal endExclusive)
Sets the DURATION or DTEND, of the vEvent depending on the EndType value vEvent contains. The duration or period is calculated from the startInclusive and endExclusive parameters.
vEvent
- - VEvent to modifystartInclusive
- endExclusive
- public abstract java.time.temporal.TemporalAmount getDuration(VEvent<?,?> vEvent)
Gets duration, either from DURATION property, or by calculating duration between DTSTART and DTEND
vEvent
-