类 TaskAndHistory

java.lang.Object
io.github.a2ap.core.model.TaskAndHistory

public class TaskAndHistory extends Object
Task and history
  • 构造器详细资料

    • TaskAndHistory

      public TaskAndHistory()
      Default constructor.
    • TaskAndHistory

      public TaskAndHistory(Task task, List<Message> history)
      Constructor with task and history.
      参数:
      task - the task
      history - the message history
  • 方法详细资料

    • getTask

      public Task getTask()
      Gets the task.
      返回:
      the task
    • setTask

      public void setTask(Task task)
      Sets the task.
      参数:
      task - the task to set
    • getHistory

      public List<Message> getHistory()
      Gets the message history.
      返回:
      the message history
    • setHistory

      public void setHistory(List<Message> history)
      Sets the message history.
      参数:
      history - the message history to set
    • equals

      public boolean equals(Object o)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • builder

      public static TaskAndHistory.Builder builder()
      Returns a builder for TaskAndHistory.
      返回:
      a new builder instance