AI-generated Key Takeaways
-
TaskInfodescribes a task to be performed by a driver, containing information like task duration and a unique ID. -
It includes methods to get the task duration (
getTaskDurationSeconds), the task ID (getTaskId), and create a builder forTaskInfoinstances. -
A
Builderclass (TaskInfo.Builder) is available to constructTaskInfoobjects. -
The
toBuildermethod allows creating a new builder pre-populated with existing task data for modifications.
Describes a task that the driver will perform.
Nested Class Summary
| class | TaskInfo.Builder | Builder class for TaskInfo | |
Public Constructor Summary
|
TaskInfo()
|
Public Method Summary
| static TaskInfo.Builder |
builder()
Returns a new default Builder instance.
|
| abstract long |
getTaskDurationSeconds()
Returns the time required to perform the task.
|
| abstract String |
getTaskId()
Returns the unique identifier of the task.
|
| abstract TaskInfo.Builder |
toBuilder()
Returns a new Builder instance set with current task ID and duration.
|
Inherited Method Summary
Public Constructors
public TaskInfo ()
Public Methods
public static TaskInfo.Builder builder ()
Returns a new default Builder instance.
public abstract long getTaskDurationSeconds ()
Returns the time required to perform the task.
public abstract String getTaskId ()
Returns the unique identifier of the task.
public abstract TaskInfo.Builder toBuilder ()
Returns a new Builder instance set with current task ID and duration.