BrightSide Workbench Full Report + Source Code
org.turro.erp.task.PendingTask Class Reference
Inheritance diagram for org.turro.erp.task.PendingTask:
Collaboration diagram for org.turro.erp.task.PendingTask:

Public Member Functions

 PendingTask (Task task)
 
Task getTask ()
 
int compareTo (PendingTask o)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 28 of file PendingTask.java.

Constructor & Destructor Documentation

◆ PendingTask()

org.turro.erp.task.PendingTask.PendingTask ( Task  task)

Definition at line 32 of file PendingTask.java.

32  {
33  this.task = task;
34  }

Member Function Documentation

◆ compareTo()

int org.turro.erp.task.PendingTask.compareTo ( PendingTask  o)

Definition at line 41 of file PendingTask.java.

41  {
42  int result = CompareUtil.compare(task.getStatus().getWorkOrder(), o.task.getStatus().getWorkOrder());
43  if(result == 0) {
44  result = CompareUtil.compare(task.isWaiting(), o.task.isWaiting());
45  }
46  if(result == 0) {
47  result = CompareUtil.compare(task.getStartDate(), o.task.getStartDate());
48  }
49  if(result == 0) {
50  result = CompareUtil.compare(task.getDelivery(), o.task.getDelivery());
51  }
52  if(result == 0) {
53  result = CompareUtil.compare(task.getEndDate(), o.task.getEndDate());
54  }
55  if(result == 0) {
56  result = CompareUtil.compare(task.getName(), o.task.getName());
57  }
58  if(result == 0) {
59  result = CompareUtil.compare(task.getId(), o.task.getId());
60  }
61  return result;
62  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTask()

Task org.turro.erp.task.PendingTask.getTask ( )

Definition at line 36 of file PendingTask.java.

36  {
37  return task;
38  }

The documentation for this class was generated from the following file: