Interface LocalizedText
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Locale>getLocales()StringgetText()StringgetText(Locale locale)voidsetText(Locale locale, String text)sets (means: "add" or "replace") a text with a given locale-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
getLocales
Collection<Locale> getLocales()
- Returns:
- all locales for which translated texts are available.
-
getText
String getText()
- Returns:
- first found text
-
getText
String getText(Locale locale)
- Parameters:
locale- the desired locale.- Returns:
- text with the given locale
-
-