Class TranslationBundle
java.lang.Object
com.inductiveautomation.ignition.common.i18n.translation.TranslationBundle
- All Implemented Interfaces:
Serializable
This class contains translated terms for a specific locale.
- See Also:
-
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
entries()
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.void
void
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
public TranslationBundle()For serialization -
TranslationBundle
-
TranslationBundle
-
-
Method Details
-
getLocale
-
setLocale
-
getValues
-
setValues
-
entries
-
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
-