Class TaskCreatedEvent

java.lang.Object
no.ntnu.principes.event.PrincipesEvent<Task>
no.ntnu.principes.event.task.TaskCreatedEvent

public class TaskCreatedEvent extends PrincipesEvent<Task>
Represents an event that is triggered when a task is created.
  • Constructor Details

    • TaskCreatedEvent

      public TaskCreatedEvent(Task task)
      Constructor for creating a new TaskCreatedEvent.
      Parameters:
      task - The task that has been created.
  • Method Details

    • of

      public static TaskCreatedEvent of(Task task)
      Creates a new TaskCreatedEvent with the specified task.
      Parameters:
      task - The task that has been created.
      Returns:
      A new instance of TaskCreatedEvent.