-
public final class SharedPreferencesMigration<T extends Object>A utility class for migrating data between two instances of SharedPreferences with optional type filtering.
-
-
Constructor Summary
Constructors Constructor Description SharedPreferencesMigration(SharedPreferences oldSharedPreferences, SharedPreferences newSharedPreferences, Class<T> valueType, Function1<T, Boolean> condition)
-
-
-
Constructor Detail
-
SharedPreferencesMigration
SharedPreferencesMigration(SharedPreferences oldSharedPreferences, SharedPreferences newSharedPreferences, Class<T> valueType, Function1<T, Boolean> condition)
- Parameters:
oldSharedPreferences- The source SharedPreferences from which data will be migrated.newSharedPreferences- The target SharedPreferences where data will be migrated to.valueType- The type of values to migrate.condition- An optional condition function that filters values based on a custom condition.
-
-