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 (used in place of a
DateEnd
property)
VAlarm
- the pause between alarm repetitions
Examples:
Duration duration = new Duration.Builder().hours(2).minutes(30).build();
DurationProperty prop = new DurationProperty(duration);
- Author:
- Michael Angstadt
- See Also:
- RFC 5545 p.99
Methods inherited from class biweekly.property.ICalProperty |
addParameter, getAltRepresentation, getCommonName, getDirectoryEntry, getFormatType, getLanguage, getParameter, getParameters, getParameters, getSentBy, getTimezoneId, removeParameter, setAltRepresentation, setCommonName, setDirectoryEntry, setFormatType, setLanguage, setParameter, setParameter, setParameters, setSentBy, setTimezone, setTimezoneId, validate |
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.