public class TaskCounter
extends java.lang.Object
| Constructor and Description |
|---|
TaskCounter(java.lang.String workerName,
int tasksTodo,
int tasksInProgress)
Conversion Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getTasksInProgress()
Get the task that are in progress.
|
int |
getTasksTodo()
Get the todo tasks.
|
java.lang.String |
getWorkerName() |
java.lang.String |
toString() |
public TaskCounter(java.lang.String workerName,
int tasksTodo,
int tasksInProgress)
workerName - the name of the workertasksTodo - the number of todo taskstasksInProgress - the number of tasks in progresspublic java.lang.String getWorkerName()
public int getTasksTodo()
public int getTasksInProgress()
public java.lang.String toString()
toString in class java.lang.Object