Package org.robolectric.shadows
Class ResourceModeShadowPicker<T>
java.lang.Object
org.robolectric.shadows.ResourceModeShadowPicker<T>
- All Implemented Interfaces:
ShadowPicker<T>
- Direct Known Subclasses:
ShadowApkAssets.Picker
,ShadowAssetInputStream.Picker
,ShadowAssetManager.Picker
,ShadowResources.ShadowTheme.Picker
,ShadowResourcesImpl.Picker
,ShadowResourcesImpl.ShadowThemeImpl.Picker
,ShadowTypedArray.Picker
public class ResourceModeShadowPicker<T> extends Object implements ShadowPicker<T>
-
Constructor Summary
Constructors Constructor Description ResourceModeShadowPicker(Class<? extends T> legacyShadowClass, Class<? extends T> binaryShadowClass, Class<? extends T> binary9ShadowClass)
ResourceModeShadowPicker(Class<? extends T> legacyShadowClass, Class<? extends T> binaryShadowClass, Class<? extends T> binary9ShadowClass, Class<? extends T> binary10ShadowClass, Class<? extends T> binary14ShadowClass)
-
Method Summary
Modifier and Type Method Description Class<? extends T>
pickShadowClass()
Determines the shadow class to be used depending on the configuration of theorg.robolectric.internal.Environment
.
-
Constructor Details
-
Method Details
-
pickShadowClass
Description copied from interface:ShadowPicker
Determines the shadow class to be used depending on the configuration of theorg.robolectric.internal.Environment
. Must be deterministic.- Specified by:
pickShadowClass
in interfaceShadowPicker<T>
- Returns:
- the shadow class to be used
-