StorageDomain.Preference


public final class StorageDomain.Preference extends StorageDomain


Targets on-device SharedPreferences XML files.

Summary

Public constructors

Preference(@NonNull String prefName, @NonNull String key, Object value)

Public methods

boolean
equals(Object other)
final @NonNull String

The specific preference key to seed or verify.

final @NonNull String

The name of the SharedPreferences XML file (excluding the .xml extension).

final Object

The value associated with the preference key, or null if asserting missing state.

int
@NonNull String

Public constructors

Preference

Added in 1.0.0-alpha01
public Preference(@NonNull String prefName, @NonNull String key, Object value)

Public methods

equals

public boolean equals(Object other)

getKey

Added in 1.0.0-alpha01
public final @NonNull String getKey()

The specific preference key to seed or verify.

getPrefName

Added in 1.0.0-alpha01
public final @NonNull String getPrefName()

The name of the SharedPreferences XML file (excluding the .xml extension).

getValue

Added in 1.0.0-alpha01
public final Object getValue()

The value associated with the preference key, or null if asserting missing state. Supported types are: String, Int, Long, Float, Boolean, or null.

hashCode

public int hashCode()

toString

public @NonNull String toString()