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
,ShadowBaseStringBlock.Picker
,ShadowBaseXmlBlock.Picker
,ShadowResourcesImpl.Picker
-
Constructor Summary
ConstructorDescriptionResourceModeShadowPicker
(Class<? extends T> binaryShadowClass, Class<? extends T> binary9ShadowClass) ResourceModeShadowPicker
(Class<? extends T> binaryShadowClass, Class<? extends T> binary9ShadowClass, Class<? extends T> binary10ShadowClass, Class<? extends T> binary14ShadowClass) ResourceModeShadowPicker
(Class<? extends T> binaryShadowClass, Class<? extends T> binary9ShadowClass, Class<? extends T> binary10ShadowClass, Class<? extends T> binary14ShadowClass, Class<? extends T> nativeShadowClass) -
Method Summary
Modifier and TypeMethodDescriptionDetermines the shadow class to be used depending on the configuration of theorg.robolectric.internal.Environment
.
-
Constructor Details
-
ResourceModeShadowPicker
-
ResourceModeShadowPicker
-
ResourceModeShadowPicker
-
-
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
-