Package com.transifex.common
Class Plurals.Builder
java.lang.Object
com.transifex.common.Plurals.Builder
- Enclosing class:
- Plurals
A class for building a
Plurals object.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionBuilds aPluralsobject with the current configuration.Assigns the given string to the given plural type.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setZero
-
setOne
-
setTwo
-
setFew
-
setMany
-
setOther
-
setPlural
Assigns the given string to the given plural type.- Parameters:
pluralType- The plural type of the string.string- The string to set.- Throws:
Plurals.NonSupportedPluralTypeException- ifpluralType's value is not one ofPlurals.PluralTypeones.
-
buildString
Builds aPluralsobject with the current configuration.- Throws:
Plurals.InvalidPluralsConfiguration- if the string forPlurals.PluralType.OTHERisnull.
-