-
- All Implemented Interfaces:
-
android.os.Parcelable,com.backbase.deferredresources.DeferredTextArray,com.backbase.deferredresources.text.ParcelableDeferredTextArray
public final class DeferredTextArray.Constant implements ParcelableDeferredTextArray
A wrapper for a constant array of text values.
This class protects against array mutability by holding a copy of the input values and by always returning a new copy of those values when resolved.
-
-
Constructor Summary
Constructors Constructor Description DeferredTextArray.Constant(CharSequence values)Initialize with the given text values. DeferredTextArray.Constant(Collection<CharSequence> values)Convenience for initializing with a Collection of text values.
-
Method Summary
Modifier and Type Method Description Array<out CharSequence>resolve(Context context)Always resolves to a new array copied from values. -
-
Constructor Detail
-
DeferredTextArray.Constant
DeferredTextArray.Constant(CharSequence values)
Initialize with the given text values.
-
DeferredTextArray.Constant
DeferredTextArray.Constant(Collection<CharSequence> values)
Convenience for initializing with a Collection of text values.
-
-
Method Detail
-
resolve
Array<out CharSequence> resolve(Context context)
Always resolves to a new array copied from values. Changes to the returned array will not be reflected in future calls to resolve this DeferredTextArray.
-
-
-
-