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 String
This sentinal value is used to build a map that contains all of the keys, it indicates that the specific key doesn't have a translation. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
boolean
boolean
Returns 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.int
hashCode()
void
merge
(TranslationBundle bundle) boolean
Removes the key and its translation, returning whether or not it was present.int
size()
toString()
-
Field Details
-
TRAN_PLACEHOLDER
This sentinal value is used to build a map that contains all of the keys, it indicates that the specific key doesn't have a translation.- 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
-