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