|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.web.bean.i18n.TranslationStoreTemplate<K,V>
K - type parameter for the keyV - type parameter for the valuepublic abstract class TranslationStoreTemplate<K,V>
Templates class for TranslationStore implementations. Subclasses need only implement #makeKeyFromString and #makeValueFromString.
| Constructor Summary | |
|---|---|
TranslationStoreTemplate(Map<String,String> map)
|
|
| Method Summary | |
|---|---|
boolean |
containsKey(String key)
Whether this TranslationStore contains the given key. |
String |
get(String key)
Returns the i18n value associated with a key. |
Iterable<String> |
keys()
Returns an Iterable over this TranslationStore's keys. |
protected abstract K |
makeKeyFromString(String key)
|
protected abstract V |
makeValueFromString(String value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TranslationStoreTemplate(Map<String,String> map)
| Method Detail |
|---|
public String get(String key)
TranslationStore
get in interface TranslationStorekey - a String key
public boolean containsKey(String key)
TranslationStore
containsKey in interface TranslationStorekey - a String key
public Iterable<String> keys()
TranslationStore
keys in interface TranslationStoreprotected abstract K makeKeyFromString(String key)
protected abstract V makeValueFromString(String value)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||