Package com.atlassian.application.api
Class ApplicationKey
java.lang.Object
com.atlassian.application.api.ApplicationKey
- All Implemented Interfaces:
Serializable
Represents the identifier to an Application. An
ApplicationKey must match the
the regular expression [a-zA-Z.]+. It is case-preserving but not case-sensitive. For example,
ApplicationKey.valueOf("ABC").equals(ApplicationKey.valueOf("aBc")) evaluates to true.- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static booleanIndicate if the passed key is valid.toString()value()Return theStringkey used to create the ApplicationKey.static ApplicationKeyCreate a newApplicationKey.
-
Method Details
-
value
Return theStringkey used to create the ApplicationKey.- Returns:
- the
Stringkey used to create the ApplicationKey.
-
equals
-
hashCode
public int hashCode() -
toString
-
valueOf
Create a newApplicationKey. The passed key must match the regex[a-zA-Z.]+.- Parameters:
key- the string for theApplicationKey.- Returns:
- the new
ApplicationKey - Throws:
IllegalArgumentException- if key is invalid.
-
isValid
Indicate if the passed key is valid.- Parameters:
key- the key to check.- Returns:
trueif the passed key is valid.
-