BUG-4688: update Revision class design 81/64681/4
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 24 Oct 2017 22:45:20 +0000 (00:45 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 25 Oct 2017 16:53:21 +0000 (18:53 +0200)
commitcbe4c4e86385f83d17aefed0a3a4f6307c119f3a
treed8c15e659169dd1ad8d284f9be86b1d44a902009
parentb705533780adf8ab8fa1f61923f6626ae3fe3496
BUG-4688: update Revision class design

Since Revision is typically captured property, with complete semantics
when it is missing, it is useful to define operations on nullable and
optional Revisions.

Furthermore we know what the proper format is, so rather than relying
on a date object, use the underlying string. This saves us some work
when communicating with others.

Change-Id: I5716f416cf87697f832c05d6223dbc9dd87dfd15
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-common/src/main/java/org/opendaylight/yangtools/yang/common/Revision.java