Interface ThingRevision

  • All Superinterfaces:
    java.lang.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
      static ThingRevision 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 Detail

      • 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.