Class AbstractThingEvent<T extends AbstractThingEvent<T>>

    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.eclipse.ditto.base.model.signals.events.Event

        org.eclipse.ditto.base.model.signals.events.Event.JsonFields
      • Nested classes/interfaces inherited from interface org.eclipse.ditto.base.model.signals.events.EventsourcedEvent

        org.eclipse.ditto.base.model.signals.events.EventsourcedEvent.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.base.model.signals.events.Event

        DEFAULT_REVISION, TYPE_QUALIFIER
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractThingEvent​(java.lang.String type, ThingId thingId, long revision, java.time.Instant timestamp, org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders, org.eclipse.ditto.base.model.entity.metadata.Metadata metadata)
      Constructs a new AbstractThingEvent object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      ThingId getEntityId()  
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class org.eclipse.ditto.base.model.signals.events.AbstractEventsourcedEvent

        getRevision, setRevision, toJson
      • Methods inherited from class org.eclipse.ditto.base.model.signals.events.AbstractEvent

        appendPayloadAndBuild, getDittoHeaders, getManifest, getMetadata, getTimestamp, getType
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface org.eclipse.ditto.base.model.signals.events.Event

        getImplementedSchemaVersion, getMetadata, getTimestamp, getType, toJson
      • Methods inherited from interface org.eclipse.ditto.base.model.signals.events.EventsourcedEvent

        getRevision
      • Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable

        getLatestSchemaVersion, getSupportedSchemaVersions, implementsSchemaVersion, implementsSchemaVersion, toJsonString
      • Methods inherited from interface org.eclipse.ditto.base.model.json.Jsonifiable.WithPredicate

        toJson, toJson, toJsonString, toJsonString
      • Methods inherited from interface org.eclipse.ditto.base.model.signals.Signal

        getName
      • Methods inherited from interface org.eclipse.ditto.base.model.headers.WithDittoHeaders

        getDittoHeaders
      • Methods inherited from interface org.eclipse.ditto.base.model.headers.WithManifest

        getManifest
      • Methods inherited from interface org.eclipse.ditto.base.model.signals.WithOptionalEntity

        getEntity, getEntity
      • Methods inherited from interface org.eclipse.ditto.base.model.signals.WithResource

        getResourcePath
    • Constructor Detail

      • AbstractThingEvent

        protected AbstractThingEvent​(java.lang.String type,
                                     ThingId thingId,
                                     long revision,
                                     @Nullable
                                     java.time.Instant timestamp,
                                     org.eclipse.ditto.base.model.headers.DittoHeaders dittoHeaders,
                                     @Nullable
                                     org.eclipse.ditto.base.model.entity.metadata.Metadata metadata)
        Constructs a new AbstractThingEvent object.
        Parameters:
        type - the type of this event.
        thingId - the ID of the Thing with which this event is associated.
        revision - the revision of the Thing.
        timestamp - the timestamp of the event.
        dittoHeaders - the headers of the command which was the cause of this event.
        metadata - the metadata which was applied together with the event, relative to the event's WithResource.getResourcePath().
        Throws:
        java.lang.NullPointerException - if any argument but timestamp or metadata is null.
    • Method Detail

      • getEntityId

        public ThingId getEntityId()
        Specified by:
        getEntityId in interface org.eclipse.ditto.base.model.entity.id.WithEntityId
        Specified by:
        getEntityId in interface WithThingId
        Overrides:
        getEntityId in class org.eclipse.ditto.base.model.signals.events.AbstractEventsourcedEvent<T extends AbstractThingEvent<T>>
      • equals

        public boolean equals​(@Nullable
                              java.lang.Object o)
        Overrides:
        equals in class org.eclipse.ditto.base.model.signals.events.AbstractEventsourcedEvent<T extends AbstractThingEvent<T>>
      • canEqual

        protected boolean canEqual​(@Nullable
                                   java.lang.Object other)
        Overrides:
        canEqual in class org.eclipse.ditto.base.model.signals.events.AbstractEventsourcedEvent<T extends AbstractThingEvent<T>>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class org.eclipse.ditto.base.model.signals.events.AbstractEventsourcedEvent<T extends AbstractThingEvent<T>>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class org.eclipse.ditto.base.model.signals.events.AbstractEventsourcedEvent<T extends AbstractThingEvent<T>>