test_class.declarator: TEST_ENTITY_CLASS =
              AggregateClass.asAggregateClass(TestAggregate.class)
test_class.modifier: private static final
test_class.original_string: private static final EntityClass<?> TEST_ENTITY_CLASS =
              AggregateClass.asAggregateClass(TestAggregate.class);
test_class.type: EntityClass<?>
test_class.var_name: TEST_ENTITY_CLASS
test_class.file: server/src/test/java/io/spine/server/entity/EntityLifecycleTest.java
test_class.identifier: EntityLifecycleTest
test_case.body: @Test
      @DisplayName("not allow nulls in Builder")
      void nullTolerance() {
          new NullPointerTester()
                  .setDefault(EntityClass.class, TEST_ENTITY_CLASS)
                  .setDefault(Object.class, 42)
                  .testInstanceMethods(EntityLifecycle.newBuilder(), PACKAGE);
      }
test_case.class_method_signature: EntityLifecycleTest.nullTolerance()
test_case.full_signature: @Test @DisplayName("not allow nulls in Builder") void nullTolerance()
test_case.identifier: nullTolerance
test_case.invocations: testInstanceMethods setDefault setDefault newBuilder
test_case.modifiers: @Test @DisplayName("not allow nulls in Builder")
test_case.parameters: ()
test_case.return: void
test_case.signature: void nullTolerance()
focal_class.declarator: systemWriteSide
focal_class.modifier: private final
focal_class.original_string: private final SystemWriteSide systemWriteSide;
focal_class.type: SystemWriteSide
focal_class.var_name: systemWriteSide
focal_class.declarator: eventFilter
focal_class.modifier: private final
focal_class.original_string: private final EventFilter eventFilter;
focal_class.type: EventFilter
focal_class.var_name: eventFilter
focal_class.declarator: entityId
focal_class.modifier: private final
focal_class.original_string: private final MessageId entityId;
focal_class.type: MessageId
focal_class.var_name: entityId
focal_class.declarator: typeName
focal_class.modifier: private final
focal_class.original_string: private final EntityTypeName typeName;
focal_class.type: EntityTypeName
focal_class.var_name: typeName
focal_class.file: server/src/main/java/io/spine/server/entity/EntityLifecycle.java
focal_class.identifier: EntityLifecycle
focal_class.class_method_signature: EntityLifecycle.EntityLifecycle(Object entityId,
                                TypeUrl entityType,
                                SystemWriteSide writeSide,
                                EventFilter eventFilter,
                                EntityTypeName typeName)
focal_class.full_signature: @VisibleForTesting protected  EntityLifecycle(Object entityId,
                                TypeUrl entityType,
                                SystemWriteSide writeSide,
                                EventFilter eventFilter,
                                EntityTypeName typeName)
focal_class.identifier: EntityLifecycle
focal_class.modifiers: @VisibleForTesting protected
focal_class.parameters: (Object entityId,
                                TypeUrl entityType,
                                SystemWriteSide writeSide,
                                EventFilter eventFilter,
                                EntityTypeName typeName)
focal_class.signature:  EntityLifecycle(Object entityId,
                                TypeUrl entityType,
                                SystemWriteSide writeSide,
                                EventFilter eventFilter,
                                EntityTypeName typeName)
focal_class.class_method_signature: EntityLifecycle.EntityLifecycle(Builder builder)
focal_class.full_signature: private  EntityLifecycle(Builder builder)
focal_class.identifier: EntityLifecycle
focal_class.modifiers: private
focal_class.parameters: (Builder builder)
focal_class.signature:  EntityLifecycle(Builder builder)
focal_class.class_method_signature: EntityLifecycle.onEntityCreated(EntityOption.Kind entityKind)
focal_class.full_signature: public final void onEntityCreated(EntityOption.Kind entityKind)
focal_class.identifier: onEntityCreated
focal_class.modifiers: public final
focal_class.parameters: (EntityOption.Kind entityKind)
focal_class.return: void
focal_class.signature: void onEntityCreated(EntityOption.Kind entityKind)
focal_class.class_method_signature: EntityLifecycle.onTargetAssignedToCommand(CommandId commandId)
focal_class.full_signature: public final void onTargetAssignedToCommand(CommandId commandId)
focal_class.identifier: onTargetAssignedToCommand
focal_class.modifiers: public final
focal_class.parameters: (CommandId commandId)
focal_class.return: void
focal_class.signature: void onTargetAssignedToCommand(CommandId commandId)
focal_class.class_method_signature: EntityLifecycle.onDispatchCommand(Command command)
focal_class.full_signature: public final void onDispatchCommand(Command command)
focal_class.identifier: onDispatchCommand
focal_class.modifiers: public final
focal_class.parameters: (Command command)
focal_class.return: void
focal_class.signature: void onDispatchCommand(Command command)
focal_class.class_method_signature: EntityLifecycle.onCommandHandled(Command command)
focal_class.full_signature: public final void onCommandHandled(Command command)
focal_class.identifier: onCommandHandled
focal_class.modifiers: public final
focal_class.parameters: (Command command)
focal_class.return: void
focal_class.signature: void onCommandHandled(Command command)
focal_class.class_method_signature: EntityLifecycle.onCommandRejected(CommandId commandId, Event rejection)
focal_class.full_signature: public final void onCommandRejected(CommandId commandId, Event rejection)
focal_class.identifier: onCommandRejected
focal_class.modifiers: public final
focal_class.parameters: (CommandId commandId, Event rejection)
focal_class.return: void
focal_class.signature: void onCommandRejected(CommandId commandId, Event rejection)
focal_class.class_method_signature: EntityLifecycle.onDispatchEventToSubscriber(Event event)
focal_class.full_signature: public final void onDispatchEventToSubscriber(Event event)
focal_class.identifier: onDispatchEventToSubscriber
focal_class.modifiers: public final
focal_class.parameters: (Event event)
focal_class.return: void
focal_class.signature: void onDispatchEventToSubscriber(Event event)
focal_class.class_method_signature: EntityLifecycle.onEventImported(Event event)
focal_class.full_signature: public final void onEventImported(Event event)
focal_class.identifier: onEventImported
focal_class.modifiers: public final
focal_class.parameters: (Event event)
focal_class.return: void
focal_class.signature: void onEventImported(Event event)
focal_class.class_method_signature: EntityLifecycle.onDispatchEventToReactor(Event event)
focal_class.full_signature: public final void onDispatchEventToReactor(Event event)
focal_class.identifier: onDispatchEventToReactor
focal_class.modifiers: public final
focal_class.parameters: (Event event)
focal_class.return: void
focal_class.signature: void onDispatchEventToReactor(Event event)
focal_class.class_method_signature: EntityLifecycle.onStateChanged(EntityRecordChange change,
                                       Set<? extends MessageId> messageIds,
                                       Origin origin)
focal_class.full_signature: public final void onStateChanged(EntityRecordChange change,
                                       Set<? extends MessageId> messageIds,
                                       Origin origin)
focal_class.identifier: onStateChanged
focal_class.modifiers: public final
focal_class.parameters: (EntityRecordChange change,
                                       Set<? extends MessageId> messageIds,
                                       Origin origin)
focal_class.return: void
focal_class.signature: void onStateChanged(EntityRecordChange change,
                                       Set<? extends MessageId> messageIds,
                                       Origin origin)
focal_class.class_method_signature: EntityLifecycle.onRemovedFromStorage(Iterable<MessageId> signalIds)
focal_class.full_signature: public final void onRemovedFromStorage(Iterable<MessageId> signalIds)
focal_class.identifier: onRemovedFromStorage
focal_class.modifiers: public final
focal_class.parameters: (Iterable<MessageId> signalIds)
focal_class.return: void
focal_class.signature: void onRemovedFromStorage(Iterable<MessageId> signalIds)
focal_class.class_method_signature: EntityLifecycle.onMigrationApplied()
focal_class.full_signature: public final Optional<Event> onMigrationApplied()
focal_class.identifier: onMigrationApplied
focal_class.modifiers: public final
focal_class.parameters: ()
focal_class.return: Optional<Event>
focal_class.signature: Optional<Event> onMigrationApplied()
focal_class.class_method_signature: EntityLifecycle.onInvalidEntity(MessageId lastMessage,
                                        MessageId root,
                                        ValidationError error,
                                        Version version)
focal_class.full_signature: public final void onInvalidEntity(MessageId lastMessage,
                                        MessageId root,
                                        ValidationError error,
                                        Version version)
focal_class.identifier: onInvalidEntity
focal_class.modifiers: public final
focal_class.parameters: (MessageId lastMessage,
                                        MessageId root,
                                        ValidationError error,
                                        Version version)
focal_class.return: void
focal_class.signature: void onInvalidEntity(MessageId lastMessage,
                                        MessageId root,
                                        ValidationError error,
                                        Version version)
focal_class.class_method_signature: EntityLifecycle.onDispatchingFailed(SignalEnvelope<?, ?, ?> signal, Error error)
focal_class.full_signature: public final void onDispatchingFailed(SignalEnvelope<?, ?, ?> signal, Error error)
focal_class.identifier: onDispatchingFailed
focal_class.modifiers: public final
focal_class.parameters: (SignalEnvelope<?, ?, ?> signal, Error error)
focal_class.return: void
focal_class.signature: void onDispatchingFailed(SignalEnvelope<?, ?, ?> signal, Error error)
focal_class.class_method_signature: EntityLifecycle.onDuplicateEvent(EventEnvelope event)
focal_class.full_signature: public void onDuplicateEvent(EventEnvelope event)
focal_class.identifier: onDuplicateEvent
focal_class.modifiers: public
focal_class.parameters: (EventEnvelope event)
focal_class.return: void
focal_class.signature: void onDuplicateEvent(EventEnvelope event)
focal_class.class_method_signature: EntityLifecycle.onDuplicateCommand(CommandEnvelope command)
focal_class.full_signature: public void onDuplicateCommand(CommandEnvelope command)
focal_class.identifier: onDuplicateCommand
focal_class.modifiers: public
focal_class.parameters: (CommandEnvelope command)
focal_class.return: void
focal_class.signature: void onDuplicateCommand(CommandEnvelope command)
focal_class.class_method_signature: EntityLifecycle.onCorruptedState(BatchDispatchOutcome outcome)
focal_class.full_signature: public void onCorruptedState(BatchDispatchOutcome outcome)
focal_class.identifier: onCorruptedState
focal_class.modifiers: public
focal_class.parameters: (BatchDispatchOutcome outcome)
focal_class.return: void
focal_class.signature: void onCorruptedState(BatchDispatchOutcome outcome)
focal_class.class_method_signature: EntityLifecycle.postIfChanged(EntityRecordChange change,
                                 Collection<? extends MessageId> messageIds,
                                 Origin origin)
focal_class.full_signature: private void postIfChanged(EntityRecordChange change,
                                 Collection<? extends MessageId> messageIds,
                                 Origin origin)
focal_class.identifier: postIfChanged
focal_class.modifiers: private
focal_class.parameters: (EntityRecordChange change,
                                 Collection<? extends MessageId> messageIds,
                                 Origin origin)
focal_class.return: void
focal_class.signature: void postIfChanged(EntityRecordChange change,
                                 Collection<? extends MessageId> messageIds,
                                 Origin origin)
focal_class.class_method_signature: EntityLifecycle.postIfArchived(EntityRecordChange change,
                                  Collection<? extends MessageId> messageIds)
focal_class.full_signature: private void postIfArchived(EntityRecordChange change,
                                  Collection<? extends MessageId> messageIds)
focal_class.identifier: postIfArchived
focal_class.modifiers: private
focal_class.parameters: (EntityRecordChange change,
                                  Collection<? extends MessageId> messageIds)
focal_class.return: void
focal_class.signature: void postIfArchived(EntityRecordChange change,
                                  Collection<? extends MessageId> messageIds)
focal_class.class_method_signature: EntityLifecycle.postIfDeleted(EntityRecordChange change,
                                 Collection<? extends MessageId> messageIds)
focal_class.full_signature: private void postIfDeleted(EntityRecordChange change,
                                 Collection<? extends MessageId> messageIds)
focal_class.identifier: postIfDeleted
focal_class.modifiers: private
focal_class.parameters: (EntityRecordChange change,
                                 Collection<? extends MessageId> messageIds)
focal_class.return: void
focal_class.signature: void postIfDeleted(EntityRecordChange change,
                                 Collection<? extends MessageId> messageIds)
focal_class.class_method_signature: EntityLifecycle.postIfExtracted(EntityRecordChange change,
                                   Collection<? extends MessageId> messageIds)
focal_class.full_signature: private void postIfExtracted(EntityRecordChange change,
                                   Collection<? extends MessageId> messageIds)
focal_class.identifier: postIfExtracted
focal_class.modifiers: private
focal_class.parameters: (EntityRecordChange change,
                                   Collection<? extends MessageId> messageIds)
focal_class.return: void
focal_class.signature: void postIfExtracted(EntityRecordChange change,
                                   Collection<? extends MessageId> messageIds)
focal_class.class_method_signature: EntityLifecycle.postIfRestored(EntityRecordChange change,
                                  Collection<? extends MessageId> messageIds)
focal_class.full_signature: private void postIfRestored(EntityRecordChange change,
                                  Collection<? extends MessageId> messageIds)
focal_class.identifier: postIfRestored
focal_class.modifiers: private
focal_class.parameters: (EntityRecordChange change,
                                  Collection<? extends MessageId> messageIds)
focal_class.return: void
focal_class.signature: void postIfRestored(EntityRecordChange change,
                                  Collection<? extends MessageId> messageIds)
focal_class.class_method_signature: EntityLifecycle.postIfDuplicate(SignalEnvelope<?, ?, ?> handledSignal, Error error)
focal_class.full_signature: private boolean postIfDuplicate(SignalEnvelope<?, ?, ?> handledSignal, Error error)
focal_class.identifier: postIfDuplicate
focal_class.modifiers: private
focal_class.parameters: (SignalEnvelope<?, ?, ?> handledSignal, Error error)
focal_class.return: boolean
focal_class.signature: boolean postIfDuplicate(SignalEnvelope<?, ?, ?> handledSignal, Error error)
focal_class.class_method_signature: EntityLifecycle.postIfDuplicateCommand(SignalEnvelope<?, ?, ?> handledSignal, Error error)
focal_class.full_signature: private boolean postIfDuplicateCommand(SignalEnvelope<?, ?, ?> handledSignal, Error error)
focal_class.identifier: postIfDuplicateCommand
focal_class.modifiers: private
focal_class.parameters: (SignalEnvelope<?, ?, ?> handledSignal, Error error)
focal_class.return: boolean
focal_class.signature: boolean postIfDuplicateCommand(SignalEnvelope<?, ?, ?> handledSignal, Error error)
focal_class.class_method_signature: EntityLifecycle.postIfDuplicateEvent(SignalEnvelope<?, ?, ?> handledSignal, Error error)
focal_class.full_signature: private boolean postIfDuplicateEvent(SignalEnvelope<?, ?, ?> handledSignal, Error error)
focal_class.identifier: postIfDuplicateEvent
focal_class.modifiers: private
focal_class.parameters: (SignalEnvelope<?, ?, ?> handledSignal, Error error)
focal_class.return: boolean
focal_class.signature: boolean postIfDuplicateEvent(SignalEnvelope<?, ?, ?> handledSignal, Error error)
focal_class.class_method_signature: EntityLifecycle.postHandlerFailed(MessageId handledSignal, Error error)
focal_class.full_signature: private void postHandlerFailed(MessageId handledSignal, Error error)
focal_class.identifier: postHandlerFailed
focal_class.modifiers: private
focal_class.parameters: (MessageId handledSignal, Error error)
focal_class.return: void
focal_class.signature: void postHandlerFailed(MessageId handledSignal, Error error)
focal_class.class_method_signature: EntityLifecycle.postEvent(EventMessage event, Origin explicitOrigin)
focal_class.full_signature: @CanIgnoreReturnValue protected Optional<Event> postEvent(EventMessage event, Origin explicitOrigin)
focal_class.identifier: postEvent
focal_class.modifiers: @CanIgnoreReturnValue protected
focal_class.parameters: (EventMessage event, Origin explicitOrigin)
focal_class.return: Optional<Event>
focal_class.signature: Optional<Event> postEvent(EventMessage event, Origin explicitOrigin)
focal_class.class_method_signature: EntityLifecycle.postEvent(EventMessage event)
focal_class.full_signature: @CanIgnoreReturnValue protected Optional<Event> postEvent(EventMessage event)
focal_class.identifier: postEvent
focal_class.modifiers: @CanIgnoreReturnValue protected
focal_class.parameters: (EventMessage event)
focal_class.return: Optional<Event>
focal_class.signature: Optional<Event> postEvent(EventMessage event)
focal_class.class_method_signature: EntityLifecycle.newBuilder()
focal_class.full_signature: static Builder newBuilder()
focal_class.identifier: newBuilder
focal_class.modifiers: static
focal_class.parameters: ()
focal_class.return: Builder
focal_class.signature: Builder newBuilder()
focal_method.body: static Builder newBuilder() {
          return new Builder();
      }
focal_method.class_method_signature: EntityLifecycle.newBuilder()
focal_method.full_signature: static Builder newBuilder()
focal_method.identifier: newBuilder
focal_method.modifiers: static
focal_method.parameters: ()
focal_method.return: Builder
focal_method.signature: Builder newBuilder()