Class AbstractEntityIdWithRevision<I extends org.eclipse.ditto.base.model.entity.id.EntityId>
- java.lang.Object
-
- org.eclipse.ditto.internal.models.streaming.AbstractEntityIdWithRevision<I>
-
- All Implemented Interfaces:
org.eclipse.ditto.base.model.json.Jsonifiable<org.eclipse.ditto.json.JsonObject>,EntityIdWithRevision<I>,IdentifiableStreamingMessage,StreamingMessage
- Direct Known Subclasses:
LowerBound
@Immutable public abstract class AbstractEntityIdWithRevision<I extends org.eclipse.ditto.base.model.entity.id.EntityId> extends java.lang.Object implements EntityIdWithRevision<I>
Abstract base implementation ofEntityIdWithRevision.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.ditto.internal.models.streaming.EntityIdWithRevision
EntityIdWithRevision.JsonFields
-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractEntityIdWithRevision(I id, long revision)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)IgetEntityId()Returns the Entity ID of the modified entity.longgetRevision()Returns the revision of the modified entity.inthashCode()org.eclipse.ditto.json.JsonObjecttoJson()java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.ditto.internal.models.streaming.EntityIdWithRevision
asIdentifierString
-
-
-
-
Constructor Detail
-
AbstractEntityIdWithRevision
protected AbstractEntityIdWithRevision(I id, long revision)
-
-
Method Detail
-
getEntityId
public I getEntityId()
Description copied from interface:EntityIdWithRevisionReturns the Entity ID of the modified entity.- Specified by:
getEntityIdin interfaceEntityIdWithRevision<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:EntityIdWithRevisionReturns the revision of the modified entity.- Specified by:
getRevisionin interfaceEntityIdWithRevision<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:
toJsonin interfaceorg.eclipse.ditto.base.model.json.Jsonifiable<I extends org.eclipse.ditto.base.model.entity.id.EntityId>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-