public class UserInfoWithPermissionLevel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected PaperDocPermissionLevel |
permissionLevel |
protected UserInfo |
user |
Constructor and Description |
---|
UserInfoWithPermissionLevel(UserInfo user,
PaperDocPermissionLevel permissionLevel) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
PaperDocPermissionLevel |
getPermissionLevel()
Permission level for the user.
|
UserInfo |
getUser()
User shared on the Paper doc.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final UserInfo user
protected final PaperDocPermissionLevel permissionLevel
public UserInfoWithPermissionLevel(UserInfo user, PaperDocPermissionLevel permissionLevel)
user
- User shared on the Paper doc. Must not be null
.permissionLevel
- Permission level for the user. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public UserInfo getUser()
null
.public PaperDocPermissionLevel getPermissionLevel()
null
.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.