BrightSide Workbench Full Report + Source Code
org.turro.dossier.graph.IssueItem Class Reference

Public Member Functions

 IssueItem (Cached< Dao > dao, Long issueId)
 
 IssueItem (Issue issue)
 
Long getIssueId ()
 
Issue getIssue ()
 
int hashCode ()
 
boolean equals (Object obj)
 

Detailed Description

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

Definition at line 30 of file IssueItem.java.

Constructor & Destructor Documentation

◆ IssueItem() [1/2]

org.turro.dossier.graph.IssueItem.IssueItem ( Cached< Dao dao,
Long  issueId 
)

Definition at line 34 of file IssueItem.java.

34  {
35  this.issueId = issueId;
36  this.issue = Cached.instance(() -> dao.get().find(Issue.class, this.issueId));
37  }
Here is the caller graph for this function:

◆ IssueItem() [2/2]

org.turro.dossier.graph.IssueItem.IssueItem ( Issue  issue)

Definition at line 39 of file IssueItem.java.

39  {
40  this.issueId = issue.getId();
41  this.issue = Cached.instance(issue);
42  }
Here is the call graph for this function:

Member Function Documentation

◆ equals()

boolean org.turro.dossier.graph.IssueItem.equals ( Object  obj)

Definition at line 66 of file IssueItem.java.

66  {
67  if (this == obj) {
68  return true;
69  }
70  if (obj == null) {
71  return false;
72  }
73  if (getClass() != obj.getClass()) {
74  return false;
75  }
76  final IssueItem other = (IssueItem) obj;
77  return Objects.equals(this.issueId, other.issueId);
78  }
IssueItem(Cached< Dao > dao, Long issueId)
Definition: IssueItem.java:34
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getIssue()

Issue org.turro.dossier.graph.IssueItem.getIssue ( )

Definition at line 52 of file IssueItem.java.

52  {
53  return issue.get();
54  }
Here is the caller graph for this function:

◆ getIssueId()

Long org.turro.dossier.graph.IssueItem.getIssueId ( )

Definition at line 44 of file IssueItem.java.

44  {
45  return issueId;
46  }

◆ hashCode()

int org.turro.dossier.graph.IssueItem.hashCode ( )

Definition at line 59 of file IssueItem.java.

59  {
60  int hash = 7;
61  hash = 17 * hash + Objects.hashCode(this.issueId);
62  return hash;
63  }

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