com.atlassian.jira.web.bean.i18n
Class MockTranslationStore
java.lang.Object
com.atlassian.jira.web.bean.i18n.MockTranslationStore
- All Implemented Interfaces:
- TranslationStore
public class MockTranslationStore
- extends Object
- implements TranslationStore
- Since:
- v6.2.3
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockTranslationStore
public MockTranslationStore(String... pairs)
MockTranslationStore
public MockTranslationStore(Map<String,String> pairs)
asMap
public Map<String,String> asMap()
get
public String get(String key)
- Description copied from interface:
TranslationStore
- Returns the i18n value associated with a key.
- Specified by:
get
in interface TranslationStore
- Parameters:
key
- a String key
- Returns:
- a String
containsKey
public boolean containsKey(String key)
- Description copied from interface:
TranslationStore
- Whether this TranslationStore contains the given key.
- Specified by:
containsKey
in interface TranslationStore
- Parameters:
key
- a String key
- Returns:
- true if this TranslationStore contains the given key
keys
public Iterable<String> keys()
- Description copied from interface:
TranslationStore
- Returns an Iterable over this TranslationStore's keys.
- Specified by:
keys
in interface TranslationStore
- Returns:
- an Iterable<String>
add
public MockTranslationStore add(String... pairs)
add
public MockTranslationStore add(String key,
String value)
Copyright © 2002-2014 Atlassian. All Rights Reserved.