-
- All Implemented Interfaces:
-
android.os.Parcelable,com.backbase.deferredresources.DeferredText,com.backbase.deferredresources.text.ParcelableDeferredText
public final class QuantifiedFormattedDeferredText implements ParcelableDeferredText
A DeferredText implementation that wraps a DeferredFormattedPlurals along with its quantity and formatArgs. Designed for use cases where the quantity and format args are determined at the declaring site rather than the resolving site.
If the quantity and format args are to be determined at the resolving site, stick with DeferredFormattedPlurals.
This class implements android.os.Parcelable. It will throw at runtime if wrapped or any of formatArgs cannot be marshalled.
-
-
Constructor Summary
Constructors Constructor Description QuantifiedFormattedDeferredText(DeferredFormattedPlurals wrapped, Integer quantity, Object formatArgs)Initialize with the given wrapped, quantity, and formatArgs.
-
Method Summary
Modifier and Type Method Description CharSequenceresolve(Context context)Resolve wrapped with quantity and formatArgs using the given context. -
-
Constructor Detail
-
QuantifiedFormattedDeferredText
QuantifiedFormattedDeferredText(DeferredFormattedPlurals wrapped, Integer quantity, Object formatArgs)
Initialize with the given wrapped, quantity, and formatArgs.
-
-
Method Detail
-
resolve
CharSequence resolve(Context context)
Resolve wrapped with quantity and formatArgs using the given context.
-
-
-
-