Class TranslationBundle
java.lang.Object
com.inductiveautomation.ignition.common.i18n.translation.TranslationBundle
This class contains translated keys for a specific locale.
Each entry's value is a nullable string: a non-null value is a translation (which may be the
empty string), while a null value marks a key that is defined for this locale but has no
translation. A key that is absent from the map is not defined for this locale at all; use contains(HashedKey) to distinguish absent from defined-but-untranslated.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanWhether the key is present for this locale, whether or not it carries a translation.boolean@Nullable StringReturns the translation, or null if the key isn't present or has no translation.inthashCode()voidmerge(TranslationBundle bundle) booleanRemoves the key and its translation, returning whether or not it was present.intsize()toString()
-
Constructor Details
-
TranslationBundle
-
TranslationBundle
-
-
Method Details
-
getLocale
-
getValues
-
getOrNull
-
contains
Whether the key is present for this locale, whether or not it carries a translation. -
add
-
remove
Removes the key and its translation, returning whether or not it was present. -
merge
-
size
public int size() -
toString
-
hashCode
-
equals
-