StorageDomain.ExcludedData


public final class StorageDomain.ExcludedData extends StorageDomain


Targets data that the restore doesn't bring back, such as data that the app's backup rules exclude.

The flow seeds domain before the backup, and verifies after the restore that the preference key, the database row with the primary key value, or the file is absent. A flow needs a restored domain as well, to verify that the restore happened: a flow with only excluded data fails with an IllegalArgumentException.

Summary

Public constructors

Public methods

boolean
equals(Object other)
final @NonNull StorageDomain

data to seed and then expect absent: a Preference or DataStorePreference with a value, a Database, a TextFile or a BinaryFile.

int
@NonNull String

Public constructors

ExcludedData

Added in 1.0.0-alpha04
public ExcludedData(@NonNull StorageDomain domain)

Public methods

equals

public boolean equals(Object other)

getDomain

Added in 1.0.0-alpha04
public final @NonNull StorageDomain getDomain()

data to seed and then expect absent: a Preference or DataStorePreference with a value, a Database, a TextFile or a BinaryFile. Any other domain fails construction with an IllegalArgumentException.

hashCode

public int hashCode()

toString

public @NonNull String toString()