- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
85 lines
2.2 KiB
Java
85 lines
2.2 KiB
Java
package androidx.work.impl.model;
|
|
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.room.ColumnInfo;
|
|
import androidx.room.Entity;
|
|
import androidx.room.PrimaryKey;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
@Entity
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY_GROUP})
|
|
/* loaded from: classes.dex */
|
|
public final class Preference {
|
|
|
|
@PrimaryKey
|
|
@ColumnInfo(name = "key")
|
|
private final String key;
|
|
|
|
@ColumnInfo(name = "long_value")
|
|
private final Long value;
|
|
|
|
public static /* synthetic */ Preference copy$default(Preference preference, String str, Long l, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = preference.key;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
l = preference.value;
|
|
}
|
|
return preference.copy(str, l);
|
|
}
|
|
|
|
public final String component1() {
|
|
return this.key;
|
|
}
|
|
|
|
public final Long component2() {
|
|
return this.value;
|
|
}
|
|
|
|
public final Preference copy(String key, Long l) {
|
|
Intrinsics.checkNotNullParameter(key, "key");
|
|
return new Preference(key, l);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof Preference)) {
|
|
return false;
|
|
}
|
|
Preference preference = (Preference) obj;
|
|
return Intrinsics.areEqual(this.key, preference.key) && Intrinsics.areEqual(this.value, preference.value);
|
|
}
|
|
|
|
public final String getKey() {
|
|
return this.key;
|
|
}
|
|
|
|
public final Long getValue() {
|
|
return this.value;
|
|
}
|
|
|
|
public int hashCode() {
|
|
int hashCode = this.key.hashCode() * 31;
|
|
Long l = this.value;
|
|
return hashCode + (l == null ? 0 : l.hashCode());
|
|
}
|
|
|
|
public String toString() {
|
|
return "Preference(key=" + this.key + ", value=" + this.value + ')';
|
|
}
|
|
|
|
public Preference(String key, Long l) {
|
|
Intrinsics.checkNotNullParameter(key, "key");
|
|
this.key = key;
|
|
this.value = l;
|
|
}
|
|
|
|
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
|
|
public Preference(String key, boolean z) {
|
|
this(key, Long.valueOf(z ? 1L : 0L));
|
|
Intrinsics.checkNotNullParameter(key, "key");
|
|
}
|
|
}
|