public class MockTranslationStore extends Object implements TranslationStore
Constructor and Description |
---|
MockTranslationStore(Map<String,String> pairs) |
MockTranslationStore(String... pairs) |
Modifier and Type | Method and Description |
---|---|
MockTranslationStore |
add(String... pairs) |
MockTranslationStore |
add(String key,
String value) |
Map<String,String> |
asMap() |
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.
|
public MockTranslationStore(String... pairs)
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
public MockTranslationStore add(String... pairs)
public MockTranslationStore add(String key, String value)
Copyright © 2002-2018 Atlassian. All Rights Reserved.