biweekly.property
Class DurationProperty
java.lang.Object
biweekly.property.ICalProperty
biweekly.property.ValuedProperty<Duration>
biweekly.property.DurationProperty
public class DurationProperty
- extends ValuedProperty<Duration>
Defines a duration of time (for example, "2 hours and 30 minutes"). It has
different meanings depending on the component it belongs to:
VEvent
- The duration of the event (used in place of a
DateEnd
property).
VTodo
- The duration of the to-do task (used in place of a
DateEnd
property).
VAlarm
- The pause between alarm repetitions.
Examples:
Duration duration = Duration.builder().hours(2).minutes(30).build();
DurationProperty prop = new DurationProperty(duration);
- Author:
- Michael Angstadt
- Specification Reference:
- RFC 5545 p.99
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DurationProperty
public DurationProperty(Duration duration)
- Creates a duration property.
- Parameters:
duration
- the duration value (e.g. "2 hours nad 30 minutes")
Copyright © 2013 Michael Angstadt. All Rights Reserved.