public class TranslationMap
extends java.util.HashMap<java.util.Locale,java.lang.String>
Constructor and Description |
---|
TranslationMap(java.lang.String key) |
TranslationMap(TranslationMap other) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getKey() |
TranslationMap |
merge(TranslationMap other)
Merges the translations from the provided map into this one, returning a new map as the result.
|
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
public TranslationMap(TranslationMap other)
public TranslationMap(java.lang.String key)
public java.lang.String getKey()
public TranslationMap merge(TranslationMap other)
If other is null, the return will simply be "this".