public class ImmutableUser extends Object implements User, Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableUser.Builder
Used to aid in the construction of an Immutable User object.
|
| Constructor and Description |
|---|
ImmutableUser(long directoryId,
String name,
String displayName,
String emailAddress,
boolean active) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(User other) |
boolean |
equals(Object o) |
static ImmutableUser |
from(User user) |
long |
getDirectoryId() |
String |
getDisplayName() |
String |
getEmailAddress() |
String |
getName() |
int |
hashCode() |
boolean |
isActive() |
static ImmutableUser.Builder |
newUser() |
static ImmutableUser.Builder |
newUser(User user)
Creates a new User Builder by cloning the values from the supplied User.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisMarkedAsDeletedpublic static ImmutableUser from(User user)
ImmutableUser with the same properties as the given user.
Will avoid creating a copy if possible.public long getDirectoryId()
getDirectoryId in interface Userpublic String getEmailAddress()
getEmailAddress in interface Userpublic String getDisplayName()
getDisplayName in interface Userpublic boolean equals(Object o)
public int hashCode()
public int compareTo(User other)
compareTo in interface UsercompareTo in interface Comparable<User>public static ImmutableUser.Builder newUser()
public static ImmutableUser.Builder newUser(User user)
user - user to be cloned.Copyright © 2023 Atlassian. All rights reserved.