Class TranslationBundle
java.lang.Object
com.inductiveautomation.ignition.common.i18n.translation.TranslationBundle
This class contains translated terms for a specific locale.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThis sentinel value is used to explicitly mark a key as having no translation in a specific bundle, distinguishing it from a key that isn't present at all. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanReturns the term, if present, or null if not.Returns the value, or null if the key isn't present, OR the "no translation" placeholder is present.inthashCode()voidmerge(TranslationBundle bundle) booleanRemoves the key and its translation, returning whether or not it was present.intsize()toString()
-
Field Details
-
TRAN_PLACEHOLDER
This sentinel value is used to explicitly mark a key as having no translation in a specific bundle, distinguishing it from a key that isn't present at all.- See Also:
-
-
Constructor Details
-
TranslationBundle
-
TranslationBundle
-
-
Method Details
-
getLocale
-
getValues
-
get
Returns the term, if present, or null if not. -
getOrNull
Returns the value, or null if the key isn't present, OR the "no translation" placeholder is present. -
contains
-
add
-
remove
Removes the key and its translation, returning whether or not it was present. -
merge
-
size
public int size() -
toString
-
hashCode
public int hashCode() -
equals
-