Package org.robolectric.shadows
Class SQLiteShadowPicker<T>
java.lang.Object
org.robolectric.shadows.SQLiteShadowPicker<T>
- All Implemented Interfaces:
ShadowPicker<T>
- Direct Known Subclasses:
ShadowCursorWindow.Picker
,ShadowSQLiteConnection.Picker
A
ShadowPicker
that selects between shadows given the SQLite mode-
Constructor Summary
ConstructorDescriptionSQLiteShadowPicker
(Class<? extends T> legacyShadowClass, Class<? extends T> nativeShadowClass) -
Method Summary
Modifier and TypeMethodDescriptionstatic com.google.common.collect.ImmutableSet<String>
Returns a list of shadow classes that need to be invalidated when the SQLite Mode is switched.Determines the shadow class to be used depending on the configuration of theorg.robolectric.internal.Environment
.
-
Constructor Details
-
SQLiteShadowPicker
-
-
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
-
getAffectedClasses
Returns a list of shadow classes that need to be invalidated when the SQLite Mode is switched.
-