Class LocalizedString.ExpressionAlternative
java.lang.Object
com.lokalized.LocalizedString.ExpressionAlternative
- Enclosing class:
LocalizedString
An expression and the generated fragment translation selected when that expression matches.
- Since:
- 3.0.0
- Author:
- Mark Allen
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionAlternative(@NonNull String expression, @NonNull String translation) Constructs an expression-driven fragment alternative. -
Method Summary
-
Constructor Details
-
ExpressionAlternative
Constructs an expression-driven fragment alternative.- Parameters:
expression- the localization expression, not nulltranslation- the fragment translation, not null
-
-
Method Details
-
toString
-
equals
-
hashCode
-
getExpression
Gets the localization expression.- Returns:
- the localization expression, not null
-
getTranslation
Gets the fragment translation selected when this expression matches.- Returns:
- the fragment translation, not null
-