public class MinimalUser extends Object implements DirectoryEntity
Constructor and Description |
---|
MinimalUser(long id,
long directoryId,
String name) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Implementations must ensure equality based on
getDirectoryId() and case-insensitive getName().
|
long |
getDirectoryId() |
long |
getId() |
String |
getName() |
int |
hashCode()
Implementations must produce a hashcode based on
getDirectoryId() and case-insensitive getName().
|
public MinimalUser(long id, long directoryId, String name)
public long getDirectoryId()
getDirectoryId
in interface DirectoryEntity
public String getName()
getName
in interface DirectoryEntity
public long getId()
public boolean equals(Object obj)
DirectoryEntity
equals
in interface DirectoryEntity
equals
in class Object
obj
- object to compare to.true
if and only if the directoryId
and the lowercase names of the directory entities match.public int hashCode()
DirectoryEntity
hashCode
in interface DirectoryEntity
hashCode
in class Object
Copyright © 2020 Atlassian. All rights reserved.