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 SummaryFieldsModifier and TypeFieldDescriptionstatic final StringThis 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 SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanentries()booleanReturns 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.voidvoidintsize()toString()
- 
Field Details- 
TRAN_PLACEHOLDERThis 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- 
TranslationBundlepublic TranslationBundle()For serialization
- 
TranslationBundle
- 
TranslationBundle
 
- 
- 
Method Details- 
getLocale
- 
setLocale
- 
getValues
- 
setValues
- 
entries
- 
getReturns the term, if present, or null if not.
- 
getOrNullReturns the value, or null if the key isn't present, OR the "no translation" placeholder is present.
- 
contains
- 
add
- 
removeRemoves the key and its translation, returning whether or not it was present.
- 
merge
- 
sizepublic int size()
- 
toString
- 
hashCodepublic int hashCode()
- 
equals
 
-