biweekly.property
Class Sequence

java.lang.Object
  extended by biweekly.property.ICalProperty
      extended by biweekly.property.ValuedProperty<Integer>
          extended by biweekly.property.IntegerProperty
              extended by biweekly.property.Sequence

public class Sequence
extends IntegerProperty

Defines a revision number for an event, to-do task, or journal entry. This number can be incremented every time a significant change is made to the component.

Examples:

 Sequence sequence = new Sequence(2);
 
 VEvent event = ...
 event.setSequence(2);
 

Author:
Michael Angstadt
Specification Reference:
RFC 5545 p.138-9

Field Summary
 
Fields inherited from class biweekly.property.ValuedProperty
value
 
Fields inherited from class biweekly.property.ICalProperty
parameters
 
Constructor Summary
Sequence(Integer sequence)
          Creates a sequence property.
 
Method Summary
 void increment()
          Increments the sequence number.
 
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

Sequence

public Sequence(Integer sequence)
Creates a sequence property.

Parameters:
sequence - the sequence number (e.g. "0" for the initial version, "1" for the first revision, etc)
Method Detail

increment

public void increment()
Increments the sequence number.



Copyright © 2013 Michael Angstadt. All Rights Reserved.