Class StreamedSnapshot

  • All Implemented Interfaces:
    org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>, StreamingMessage

    public final class StreamedSnapshot
    extends java.lang.Object
    implements StreamingMessage, org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>
    Serializable message for streamed snapshots.
    • 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 Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      static StreamedSnapshot fromJson​(org.eclipse.ditto.json.JsonObject jsonObject)
      Deserialize a streamed snapshot from JSON.
      org.eclipse.ditto.base.model.entity.id.EntityId getEntityId()
      Retrieve the entity ID of the streamed snapshot.
      org.eclipse.ditto.json.JsonObject getSnapshot()
      Retrieve the snapshot as JSON object.
      int hashCode()  
      static StreamedSnapshot of​(org.eclipse.ditto.base.model.entity.id.EntityId entityId, org.eclipse.ditto.json.JsonObject snapshot)
      Create a streamed snapshot from entity ID and snapshot as JSON object.
      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
    • Method Detail

      • of

        public static StreamedSnapshot of​(org.eclipse.ditto.base.model.entity.id.EntityId entityId,
                                          org.eclipse.ditto.json.JsonObject snapshot)
        Create a streamed snapshot from entity ID and snapshot as JSON object.
        Parameters:
        entityId - the entity ID of the snapshot.
        snapshot - the snapshot as JSON object.
        Returns:
        the streamed snapshot object.
      • fromJson

        public static StreamedSnapshot fromJson​(org.eclipse.ditto.json.JsonObject jsonObject)
        Deserialize a streamed snapshot from JSON.
        Parameters:
        jsonObject - the JSON representation of the streamed snapshot.
        Returns:
        the streamed snapshot object.
      • getEntityId

        public org.eclipse.ditto.base.model.entity.id.EntityId getEntityId()
        Retrieve the entity ID of the streamed snapshot.
        Returns:
        the entity ID.
      • getSnapshot

        public org.eclipse.ditto.json.JsonObject getSnapshot()
        Retrieve the snapshot as JSON object.
        Returns:
        the snapshot as JSON object.
      • toJson

        public org.eclipse.ditto.json.JsonObject toJson()
        Specified by:
        toJson in interface org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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