Interface ThingRevision

All Superinterfaces:
Comparable<ThingRevision>, org.eclipse.ditto.base.model.entity.Revision<ThingRevision>

public interface ThingRevision extends org.eclipse.ditto.base.model.entity.Revision<ThingRevision>
Represents the current revision of a Thing.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    newInstance(long revisionNumber)
    Returns a new immutable ThingRevision which is initialised with the given revision number.

    Methods inherited from interface java.lang.Comparable

    compareTo

    Methods inherited from interface org.eclipse.ditto.base.model.entity.Revision

    increment, isGreaterThan, isGreaterThanOrEqualTo, isLowerThan, isLowerThanOrEqualTo, toLong, toString
  • Method Details

    • newInstance

      static ThingRevision newInstance(long revisionNumber)
      Returns a new immutable ThingRevision which is initialised with the given revision number.
      Parameters:
      revisionNumber - the long value of the revision.
      Returns:
      the new immutable ThingRevision.