|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtendedPreferences
Adding the abilities to store, retrieve text from property set and to check if preference is stored at all
Method Summary | |
---|---|
boolean |
containsValue(String key)
Checks if key exists (defaults doesn't count) |
boolean |
equals(Object other)
Preferences objects are equal iff they are preferences for the same user. |
String |
getText(String key)
|
String |
getUserKey()
Returns the user's key, or null if the preferences are for an anonymous user. |
int |
hashCode()
Returns a hash code based on the user's key, or 0 if the preferences are for an anonymous user. |
void |
setText(String key,
String value)
|
Methods inherited from interface com.atlassian.core.user.preferences.Preferences |
---|
getBoolean, getLong, getString, remove, setBoolean, setLong, setString |
Method Detail |
---|
String getText(String key)
void setText(String key, String value) throws com.atlassian.core.AtlassianCoreException
com.atlassian.core.AtlassianCoreException
boolean containsValue(String key)
key
- key to be checked
String getUserKey()
null
if the preferences are for an anonymous user.
null
if the preferences are for an anonymous user.boolean equals(Object other)
equals
in class Object
other
- the object to check for equality
true
if the the preferences are for the same user; false
otherwiseint hashCode()
0
if the preferences are for an anonymous user.
hashCode
in class Object
0
if the preferences are for an anonymous user.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |