@ExperimentalApi public class ReviewerSearchResult extends java.lang.Object implements java.lang.Comparable<ReviewerSearchResult>
type
property is set to Type.USER
, user
has reference to user details
If type
property is set to Type.GROUP
, user
has reference to group detailsModifier and Type | Class and Description |
---|---|
static class |
ReviewerSearchResult.GroupResult
The data object containing group data
|
static class |
ReviewerSearchResult.Type |
static class |
ReviewerSearchResult.UserResult
The data object containing user data
|
Constructor and Description |
---|
ReviewerSearchResult(ReviewerSearchResult.GroupResult group) |
ReviewerSearchResult(ReviewerSearchResult.UserResult user) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ReviewerSearchResult o) |
boolean |
equals(java.lang.Object o) |
ReviewerSearchResult.GroupResult |
getGroup() |
ReviewerSearchResult.Type |
getType() |
ReviewerSearchResult.UserResult |
getUser() |
int |
hashCode() |
java.lang.String |
toString() |
public ReviewerSearchResult(ReviewerSearchResult.UserResult user)
public ReviewerSearchResult(ReviewerSearchResult.GroupResult group)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ReviewerSearchResult.Type getType()
public ReviewerSearchResult.UserResult getUser()
public ReviewerSearchResult.GroupResult getGroup()
public int compareTo(ReviewerSearchResult o)
compareTo
in interface java.lang.Comparable<ReviewerSearchResult>
public java.lang.String toString()
toString
in class java.lang.Object