Class Revision

java.lang.Object
org.opendaylight.yangtools.yang.common.Revision
All Implemented Interfaces:
Serializable, Comparable<RevisionUnion>, Immutable, WritableObject, RevisionUnion

public final class Revision extends Object implements RevisionUnion
Dedicated object identifying a YANG module revision.

API design note

This class defines the contents of a revision statement, but modules do not require to have a revision (e.g. they have not started to keep track of revisions).

APIs which involve this class should always transfer instances via Optional<Revision>, which is the primary bridge data type. Implementations can use nullable fields with explicit conversions to/from Optional. Both patterns can take advantage of compare(Optional, Optional) and compare(Revision, Revision) respectively.

See Also: