Record Class TranslationSettings
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.i18n.translation.TranslationSettings
- Record Components:
caseInsensitive- Whether matching keys should be case-insensitive.ignoreWhitespace- Whether to ignore whitespace when matching keys.ignorePunctuation- Whether to ignore punctuation when matching keys.ignoreTags- Whether to ignore tags (e.g., HTML tags) when matching keys.
public record TranslationSettings(boolean caseInsensitive, boolean ignoreWhitespace, boolean ignorePunctuation, boolean ignoreTags)
extends Record
Settings that define how translations are handled, including normalization rules like ignoring
whitespace or punctuation.
-
Constructor Summary
ConstructorsConstructorDescriptionTranslationSettings(boolean caseInsensitive, boolean ignoreWhitespace, boolean ignorePunctuation, boolean ignoreTags) Creates an instance of aTranslationSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thecaseInsensitiverecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theignorePunctuationrecord component.booleanReturns the value of theignoreTagsrecord component.booleanReturns the value of theignoreWhitespacerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TranslationSettings
public TranslationSettings(boolean caseInsensitive, boolean ignoreWhitespace, boolean ignorePunctuation, boolean ignoreTags) Creates an instance of aTranslationSettingsrecord class.- Parameters:
caseInsensitive- the value for thecaseInsensitiverecord componentignoreWhitespace- the value for theignoreWhitespacerecord componentignorePunctuation- the value for theignorePunctuationrecord componentignoreTags- the value for theignoreTagsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
caseInsensitive
public boolean caseInsensitive()Returns the value of thecaseInsensitiverecord component.- Returns:
- the value of the
caseInsensitiverecord component
-
ignoreWhitespace
public boolean ignoreWhitespace()Returns the value of theignoreWhitespacerecord component.- Returns:
- the value of the
ignoreWhitespacerecord component
-
ignorePunctuation
public boolean ignorePunctuation()Returns the value of theignorePunctuationrecord component.- Returns:
- the value of the
ignorePunctuationrecord component
-
ignoreTags
public boolean ignoreTags()Returns the value of theignoreTagsrecord component.- Returns:
- the value of the
ignoreTagsrecord component
-