com.atlassian.jira.web.bean.i18n
Class StringBackedStore

java.lang.Object
  extended by com.atlassian.jira.web.bean.i18n.StringBackedStore
All Implemented Interfaces:
TranslationStore

public class StringBackedStore
extends Object
implements TranslationStore

Uses String for both keys and values.

Since:
6.2

Constructor Summary
StringBackedStore(Map<String,String> map)
           
 
Method Summary
 boolean containsKey(String key)
          Whether this TranslationStore contains the given key.
static StringBackedStore fromMap(Map<String,String> map)
           
 String get(String key)
          Returns the i18n value associated with a key.
 Iterable<String> keys()
          Returns an Iterable over this TranslationStore's keys.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringBackedStore

public StringBackedStore(Map<String,String> map)
Method Detail

fromMap

public static StringBackedStore fromMap(Map<String,String> map)

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>


Copyright © 2002-2014 Atlassian. All Rights Reserved.