|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.user.repository.DefaultRepositoryIdentifier
public class DefaultRepositoryIdentifier
Default identifier class for a repository.
Comparisons between different repositories are done with the key.
equals(Object),
Serialized Form| Constructor Summary | |
|---|---|
DefaultRepositoryIdentifier(String key,
String name)
Create a repository with the specified key. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Compares this repository with another repository, using the keys of both. |
String |
getKey()
String uniquely identifying this repository. |
String |
getName()
String with a more user-friendly name for the repository. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultRepositoryIdentifier(String key,
String name)
key - the repository key, which must be unique and not null.name - the name of the repository, which must not be null.
IllegalArgumentException - if either key or name is null.| Method Detail |
|---|
public String getName()
RepositoryIdentifiernull.
getName in interface RepositoryIdentifierpublic String getKey()
RepositoryIdentifiernull.
getKey in interface RepositoryIdentifierpublic boolean equals(Object o)
equals in class ObjectRepositoryIdentifier with an equal key, otherwise false.public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||