Interface EntityIdWithRevision<I extends org.eclipse.ditto.base.model.entity.id.EntityId>
-
- All Superinterfaces:
IdentifiableStreamingMessage,org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>,StreamingMessage
- All Known Implementing Classes:
AbstractEntityIdWithRevision,LowerBound
public interface EntityIdWithRevision<I extends org.eclipse.ditto.base.model.entity.id.EntityId> extends org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>, IdentifiableStreamingMessage
Represents the ID of an entity with a revision of the entity.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classEntityIdWithRevision.JsonFieldsAn enumeration of the knownJsonFields of a EntityIdWithRevision.-
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 Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.lang.StringasIdentifierString()Returns this tag as an identifier in the format<id>:<revision>.IgetEntityId()Returns the Entity ID of the modified entity.longgetRevision()Returns the revision of the modified entity.
-
-
-
Method Detail
-
getEntityId
I getEntityId()
Returns the Entity ID of the modified entity.- Returns:
- the ID of the modified entity.
-
getRevision
long getRevision()
Returns the revision of the modified entity.- Returns:
- the revision of the modified entity.
-
asIdentifierString
default java.lang.String asIdentifierString()
Returns this tag as an identifier in the format<id>:<revision>.- Specified by:
asIdentifierStringin interfaceIdentifiableStreamingMessage- Returns:
- the tag as an identifier
-
-