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
-
Method Summary
Modifier and TypeMethodDescriptionBuilds aPlurals
object 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.PluralType
ones.
-
buildString
Builds aPlurals
object with the current configuration.- Throws:
Plurals.InvalidPluralsConfiguration
- if the string forPlurals.PluralType.OTHER
isnull
.
-