Class AbstractEntityIdWithRevision<I extends org.eclipse.ditto.base.model.entity.id.EntityId>

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable

        org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelector, org.eclipse.ditto.base.model.json.Jsonifiable.WithFieldSelectorAndPredicate<T extends java.lang.Object>, org.eclipse.ditto.base.model.json.Jsonifiable.WithPointer<J extends org.eclipse.ditto.json.JsonValue>, org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate<J extends org.eclipse.ditto.json.JsonValue,​T extends java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      I getEntityId()
      Returns the Entity ID of the modified entity.
      long getRevision()
      Returns the revision of the modified entity.
      int hashCode()  
      org.eclipse.ditto.json.JsonObject toJson()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable

        getImplementedSchemaVersion, getLatestSchemaVersion, getSupportedSchemaVersions, implementsSchemaVersion, implementsSchemaVersion, toJsonString
    • Constructor Detail

      • AbstractEntityIdWithRevision

        protected AbstractEntityIdWithRevision​(I id,
                                               long revision)
    • Method Detail

      • getEntityId

        public I getEntityId()
        Description copied from interface: EntityIdWithRevision
        Returns the Entity ID of the modified entity.
        Specified by:
        getEntityId in interface EntityIdWithRevision<I extends org.eclipse.ditto.base.model.entity.id.EntityId>
        Returns:
        the ID of the modified entity.
      • getRevision

        public long getRevision()
        Description copied from interface: EntityIdWithRevision
        Returns the revision of the modified entity.
        Specified by:
        getRevision in interface EntityIdWithRevision<I extends org.eclipse.ditto.base.model.entity.id.EntityId>
        Returns:
        the revision of the modified entity.
      • toJson

        public org.eclipse.ditto.json.JsonObject toJson()
        Specified by:
        toJson in interface org.eclipse.ditto.base.model.json.Jsonifiable<I extends org.eclipse.ditto.base.model.entity.id.EntityId>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object