Package com.atlassian.jira.user
Class ImmutableUserIssueRelevance
java.lang.Object
com.atlassian.jira.user.ImmutableUserIssueRelevance
- All Implemented Interfaces:
UserIssueRelevance,Comparable<UserIssueRelevance>
-
Method Details
-
getUser
- Specified by:
getUserin interfaceUserIssueRelevance- Returns:
- The user
-
getIssue
- Specified by:
getIssuein interfaceUserIssueRelevance- Returns:
- The issue
-
getIssueInvolvements
- Specified by:
getIssueInvolvementsin interfaceUserIssueRelevance- Returns:
- The set of involvements the user has with the issue
-
getHighestIssueInvolvementRank
- Specified by:
getHighestIssueInvolvementRankin interfaceUserIssueRelevance- Returns:
- The highest issue involvement rank from the set of involvements the user has with the issue, where 0 is a closer involvement than 1
-
getLatestCommentCreationTime
- Specified by:
getLatestCommentCreationTimein interfaceUserIssueRelevance- Returns:
- The time of the user's latest comment on the issue, or empty if none
-
compareTo
Order by highest involvement, then by latest comment date, then by username.Note: can only compare relevancy of users for the same issue.
- Specified by:
compareToin interfaceComparable<UserIssueRelevance>- Parameters:
o- The object we're comparing to- Returns:
- A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object
-