K
- type parameter for the keyV
- type parameter for the valuepublic abstract class TranslationStoreTemplate<K,V> extends Object implements TranslationStore
Constructor and Description |
---|
TranslationStoreTemplate(Map<String,String> map) |
Modifier and Type | Method and Description |
---|---|
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) |
public String get(String key)
TranslationStore
get
in interface TranslationStore
key
- a String keypublic boolean containsKey(String key)
TranslationStore
containsKey
in interface TranslationStore
key
- a String keypublic Iterable<String> keys()
TranslationStore
keys
in interface TranslationStore
Copyright © 2002-2022 Atlassian. All Rights Reserved.