ezvcard.property
Class Revision
java.lang.Object
ezvcard.property.VCardProperty
ezvcard.property.SimpleProperty<Date>
ezvcard.property.Revision
- All Implemented Interfaces:
- Comparable<VCardProperty>
public class Revision
- extends SimpleProperty<Date>
The date that the vCard was last modified by its owner.
Code sample
VCard vcard = new VCard();
Revision rev = new Revision(new Date());
vcard.setRevision(rev);
Property name: REV
Supported versions: 2.1, 3.0, 4.0
- Author:
- Michael Angstadt
Constructor Summary |
Revision(Date date)
Creates a revision property. |
Method Summary |
static Revision |
now()
Creates a REV property whose value is the current time. |
Methods inherited from class ezvcard.property.VCardProperty |
_supportedVersions, addParameter, compareTo, getGroup, getParameter, getParameters, getParameters, getSupportedVersions, removeParameter, setGroup, setParameter, setParameters, validate |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Revision
public Revision(Date date)
- Creates a revision property.
- Parameters:
date
- the last-modified date
now
public static Revision now()
- Creates a REV property whose value is the current time.
- Returns:
- the REV property instance
Copyright © 2012-2014 Michael Angstadt. All Rights Reserved.