Class LocalizedString.LanguageFormTranslationRule
java.lang.Object
com.lokalized.LocalizedString.LanguageFormTranslationRule
- Enclosing class:
LocalizedString
Defines a selector-based translation rule for a multi-axis placeholder translation.
Rules may optionally provide a when map. An empty map represents the default rule.
- Author:
- Mark Allen
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a default translation rule with no conditions.LanguageFormTranslationRule(@NonNull Map<@NonNull LanguageFormType, @NonNull LanguageForm> whenByLanguageFormType, @NonNull String value) Constructs a translation rule with the given selector conditions and value. -
Method Summary
-
Constructor Details
-
LanguageFormTranslationRule
Constructs a default translation rule with no conditions.- Parameters:
value- the value to use when this rule matches, not null
-
LanguageFormTranslationRule
public LanguageFormTranslationRule(@NonNull Map<@NonNull LanguageFormType, @NonNull LanguageForm> whenByLanguageFormType, @NonNull String value) Constructs a translation rule with the given selector conditions and value.- Parameters:
whenByLanguageFormType- selector conditions that must be satisfied for this rule to match, not nullvalue- the value to use when this rule matches, not null
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getWhenByLanguageFormType
Gets the selector conditions for this rule.- Returns:
- the selector conditions for this rule, not null
-
getValue
-