42 lines
1.1 KiB
Java
42 lines
1.1 KiB
Java
|
package com.google.android.gms.common.api;
|
||
|
|
||
|
import com.google.android.gms.common.internal.Preconditions;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public class BooleanResult implements Result {
|
||
|
private final Status zaa;
|
||
|
private final boolean zab;
|
||
|
|
||
|
public BooleanResult(Status status, boolean z) {
|
||
|
this.zaa = (Status) Preconditions.checkNotNull(status, "Status must not be null");
|
||
|
this.zab = z;
|
||
|
}
|
||
|
|
||
|
public final boolean equals(Object obj) {
|
||
|
if (obj == null) {
|
||
|
return false;
|
||
|
}
|
||
|
if (obj == this) {
|
||
|
return true;
|
||
|
}
|
||
|
if (!(obj instanceof BooleanResult)) {
|
||
|
return false;
|
||
|
}
|
||
|
BooleanResult booleanResult = (BooleanResult) obj;
|
||
|
return this.zaa.equals(booleanResult.zaa) && this.zab == booleanResult.zab;
|
||
|
}
|
||
|
|
||
|
public final int hashCode() {
|
||
|
return ((this.zaa.hashCode() + 527) * 31) + (this.zab ? 1 : 0);
|
||
|
}
|
||
|
|
||
|
public boolean getValue() {
|
||
|
return this.zab;
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.common.api.Result
|
||
|
public Status getStatus() {
|
||
|
return this.zaa;
|
||
|
}
|
||
|
}
|