org.robolectric.shadows.AutoValue_ShadowAppOpsManager_Key Maven / Gradle / Ivy
package org.robolectric.shadows;
import android.annotation.Nullable;
import javax.annotation.Generated;
@Generated("com.google.auto.value.processor.AutoValueProcessor")
final class AutoValue_ShadowAppOpsManager_Key extends ShadowAppOpsManager.Key {
private final Integer uid;
private final String packageName;
private final Integer opCode;
AutoValue_ShadowAppOpsManager_Key(
@Nullable Integer uid,
@Nullable String packageName,
@Nullable Integer opCode) {
this.uid = uid;
this.packageName = packageName;
this.opCode = opCode;
}
@Nullable
@Override
Integer getUid() {
return uid;
}
@Nullable
@Override
String getPackageName() {
return packageName;
}
@Nullable
@Override
Integer getOpCode() {
return opCode;
}
@Override
public String toString() {
return "Key{"
+ "uid=" + uid + ", "
+ "packageName=" + packageName + ", "
+ "opCode=" + opCode
+ "}";
}
@Override
public boolean equals(Object o) {
if (o == this) {
return true;
}
if (o instanceof ShadowAppOpsManager.Key) {
ShadowAppOpsManager.Key that = (ShadowAppOpsManager.Key) o;
return (this.uid == null ? that.getUid() == null : this.uid.equals(that.getUid()))
&& (this.packageName == null ? that.getPackageName() == null : this.packageName.equals(that.getPackageName()))
&& (this.opCode == null ? that.getOpCode() == null : this.opCode.equals(that.getOpCode()));
}
return false;
}
@Override
public int hashCode() {
int h$ = 1;
h$ *= 1000003;
h$ ^= (uid == null) ? 0 : uid.hashCode();
h$ *= 1000003;
h$ ^= (packageName == null) ? 0 : packageName.hashCode();
h$ *= 1000003;
h$ ^= (opCode == null) ? 0 : opCode.hashCode();
return h$;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy