biweekly.property
Class DurationProperty

java.lang.Object
  extended by biweekly.property.ICalProperty
      extended by biweekly.property.ValuedProperty<Duration>
          extended by 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:

Examples:

 Duration duration = Duration.builder().hours(2).minutes(30).build();
 DurationProperty prop = new DurationProperty(duration);
 

Author:
Michael Angstadt
Specification Reference:
RFC 5545 p.99

Field Summary
 
Fields inherited from class biweekly.property.ValuedProperty
value
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
DurationProperty(Duration duration)
          Creates a duration property.
 
Method Summary
 
Methods inherited from class biweekly.property.ValuedProperty
getValue, setValue, validate
 
Methods inherited from class biweekly.property.ICalProperty
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.