Class StreamedSnapshot
- java.lang.Object
-
- org.eclipse.ditto.internal.models.streaming.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>
-
-
Field Summary
-
Fields inherited from interface org.eclipse.ditto.internal.models.streaming.StreamingMessage
TYPE_PREFIX
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object other)static StreamedSnapshotfromJson(org.eclipse.ditto.json.JsonObject jsonObject)Deserialize a streamed snapshot from JSON.org.eclipse.ditto.base.model.entity.id.EntityIdgetEntityId()Retrieve the entity ID of the streamed snapshot.org.eclipse.ditto.json.JsonObjectgetSnapshot()Retrieve the snapshot as JSON object.inthashCode()static StreamedSnapshotof(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.JsonObjecttoJson()java.lang.StringtoString()
-
-
-
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:
toJsonin interfaceorg.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-