Class SQLiteShadowPicker<T>

java.lang.Object
org.robolectric.shadows.SQLiteShadowPicker<T>
All Implemented Interfaces:
ShadowPicker<T>
Direct Known Subclasses:
ShadowCursorWindow.Picker, ShadowNativeSQLiteRawStatement.Picker, ShadowSQLiteConnection.Picker

public class SQLiteShadowPicker<T> extends Object implements ShadowPicker<T>
A ShadowPicker that selects between shadows given the SQLite mode
  • Constructor Summary

    Constructors
    Constructor
    Description
    SQLiteShadowPicker(Class<? extends T> legacyShadowClass, Class<? extends T> nativeShadowClass)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.google.common.collect.ImmutableSet<String>
    Returns a list of shadow classes that need to be invalidated when the SQLite Mode is switched.
    @Nullable Class<? extends T>
    Determines the shadow class to be used depending on the configuration of the
    invalid reference
    org.robolectric.internal.Environment
    .

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SQLiteShadowPicker

      public SQLiteShadowPicker(Class<? extends T> legacyShadowClass, Class<? extends T> nativeShadowClass)
  • Method Details

    • pickShadowClass

      public @Nullable Class<? extends T> pickShadowClass()
      Description copied from interface: ShadowPicker
      Determines the shadow class to be used depending on the configuration of the
      invalid reference
      org.robolectric.internal.Environment
      . Must be deterministic.
      Specified by:
      pickShadowClass in interface ShadowPicker<T>
      Returns:
      the shadow class to be used
    • getAffectedClasses

      public static com.google.common.collect.ImmutableSet<String> getAffectedClasses()
      Returns a list of shadow classes that need to be invalidated when the SQLite Mode is switched.