public abstract class TaskOrUser extends AbstractPersistable
Modifier and Type | Field and Description |
---|---|
protected Task |
nextTask
Shadow variable for being able to move forward in the chain.
|
id
Constructor and Description |
---|
TaskOrUser() |
TaskOrUser(long id) |
Modifier and Type | Method and Description |
---|---|
abstract Integer |
getEndTimeInMinutes() |
Task |
getNextTask() |
abstract User |
getUser() |
void |
setNextTask(Task nextTask) |
getId, setId, toString
protected Task nextTask
User (the anchor) <-> A <-> B <-> C <-> D -> null
In this way given a TaskOrUser in a solution it's possible to iterate back and forward through the data structure.
public Task getNextTask()
public void setNextTask(Task nextTask)
public abstract Integer getEndTimeInMinutes()
public abstract User getUser()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.