com.atlassian.jira.usercompatibility
Interface UserWithKey

All Known Implementing Classes:
DelegatingUserWithKey

public interface UserWithKey

Represents user with key


Method Summary
 boolean equals(java.lang.Object obj)
          Implementations must ensure equality based on getKey().
 java.lang.String getKey()
           
 com.atlassian.crowd.embedded.api.User getUser()
           
 int hashCode()
          Implementations must produce a hashcode based on getKey().
 

Method Detail

getUser

com.atlassian.crowd.embedded.api.User getUser()
Returns:
the user identified by key

getKey

java.lang.String getKey()
Returns:
the key which distinguishes the ApplicationUser as unique

equals

boolean equals(java.lang.Object obj)
Implementations must ensure equality based on getKey().

Overrides:
equals in class java.lang.Object
Parameters:
obj - object to compare to.
Returns:
true if and only if the key matches.

hashCode

int hashCode()
Implementations must produce a hashcode based on getKey().

Overrides:
hashCode in class java.lang.Object
Returns:
hashcode.


Copyright © 2013 Atlassian. All Rights Reserved.