-
- All Implemented Interfaces:
-
android.os.Parcelable,com.backbase.deferredresources.DeferredPlurals,com.backbase.deferredresources.text.ParcelableDeferredPlurals
public final class DeferredPlurals.Constant implements ParcelableDeferredPlurals
A wrapper for constant pluralized text. zero, one, two, few, and many are locale-specific, quantity-specific text values, while other is the fallback.
-
-
Constructor Summary
Constructors Constructor Description DeferredPlurals.Constant(CharSequence other, CharSequence zero, CharSequence one, CharSequence two, CharSequence few, CharSequence many, PluralRules.PluralType type)Constructor for API 24+. DeferredPlurals.Constant(CharSequence other, CharSequence zero, CharSequence one, CharSequence two, CharSequence few, CharSequence many)Constructor for APIs < 24.
-
Method Summary
Modifier and Type Method Description CharSequenceresolve(Context context, Integer quantity)Resolves to one of zero, one, two, few, many, or other depending on the device's primary locale and the given quantity. -
-
Constructor Detail
-
DeferredPlurals.Constant
DeferredPlurals.Constant(CharSequence other, CharSequence zero, CharSequence one, CharSequence two, CharSequence few, CharSequence many, PluralRules.PluralType type)
Constructor for API 24+.
-
DeferredPlurals.Constant
DeferredPlurals.Constant(CharSequence other, CharSequence zero, CharSequence one, CharSequence two, CharSequence few, CharSequence many)
Constructor for APIs < 24.
-
-
Method Detail
-
resolve
CharSequence resolve(Context context, Integer quantity)
Resolves to one of zero, one, two, few, many, or other depending on the device's primary locale and the given quantity.
-
-
-
-