BrightSide Workbench Full Report + Source Code
org.turro.dossier.workload.WorkloadItem Class Reference
Inheritance diagram for org.turro.dossier.workload.WorkloadItem:
Collaboration diagram for org.turro.dossier.workload.WorkloadItem:

Public Member Functions

 WorkloadItem (Worksheet worksheet)
 
 WorkloadItem (IssueWrapper wrapper)
 
Issue getIssue ()
 
IssueWrapper getWrapper ()
 
Worksheet getWorksheet ()
 
int compareTo (WorkloadItem o)
 

Detailed Description

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

Definition at line 30 of file WorkloadItem.java.

Constructor & Destructor Documentation

◆ WorkloadItem() [1/2]

org.turro.dossier.workload.WorkloadItem.WorkloadItem ( Worksheet  worksheet)

Definition at line 35 of file WorkloadItem.java.

35  {
36  this.worksheet = worksheet;
37  wrapper = new IssueWrapper(worksheet.getIssue(), worksheet.getIContact());
38  }
Here is the call graph for this function:

◆ WorkloadItem() [2/2]

org.turro.dossier.workload.WorkloadItem.WorkloadItem ( IssueWrapper  wrapper)

Definition at line 40 of file WorkloadItem.java.

40  {
41  this.wrapper = wrapper;
42  }

Member Function Documentation

◆ compareTo()

int org.turro.dossier.workload.WorkloadItem.compareTo ( WorkloadItem  o)

Definition at line 57 of file WorkloadItem.java.

57  {
58  int result = CompareUtil.compareNull(o.worksheet, worksheet);
59  if(result == 0 && worksheet != null) {
60  result = CompareUtil.compare(worksheet.getSheetOrder(), o.worksheet.getSheetOrder());
61  }
62  if(result == 0) {
63  result = wrapper.getOrderingValue().compareTo(o.wrapper.getOrderingValue());
64  }
65  return result;
66  }
Here is the call graph for this function:

◆ getIssue()

Issue org.turro.dossier.workload.WorkloadItem.getIssue ( )

Definition at line 44 of file WorkloadItem.java.

44  {
45  return wrapper.getIssue();
46  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getWorksheet()

Worksheet org.turro.dossier.workload.WorkloadItem.getWorksheet ( )

Definition at line 52 of file WorkloadItem.java.

52  {
53  return worksheet;
54  }
Here is the caller graph for this function:

◆ getWrapper()

IssueWrapper org.turro.dossier.workload.WorkloadItem.getWrapper ( )

Definition at line 48 of file WorkloadItem.java.

48  {
49  return wrapper;
50  }
Here is the caller graph for this function:

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