47 lines
1.3 KiB
Java
47 lines
1.3 KiB
Java
package com.google.android.gms.common.api.internal;
|
|
|
|
import com.google.android.gms.common.api.Api;
|
|
import com.google.android.gms.common.api.Api.ApiOptions;
|
|
import com.google.android.gms.common.internal.Objects;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class ApiKey<O extends Api.ApiOptions> {
|
|
private final int zaa;
|
|
private final Api<O> zab;
|
|
private final O zac;
|
|
private final String zad;
|
|
|
|
private ApiKey(Api<O> api, O o2, String str) {
|
|
this.zab = api;
|
|
this.zac = o2;
|
|
this.zad = str;
|
|
this.zaa = Objects.hashCode(api, o2, str);
|
|
}
|
|
|
|
public static <O extends Api.ApiOptions> ApiKey<O> zaa(Api<O> api, O o2, String str) {
|
|
return new ApiKey<>(api, o2, str);
|
|
}
|
|
|
|
public final boolean equals(Object obj) {
|
|
if (obj == null) {
|
|
return false;
|
|
}
|
|
if (obj == this) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof ApiKey)) {
|
|
return false;
|
|
}
|
|
ApiKey apiKey = (ApiKey) obj;
|
|
return Objects.equal(this.zab, apiKey.zab) && Objects.equal(this.zac, apiKey.zac) && Objects.equal(this.zad, apiKey.zad);
|
|
}
|
|
|
|
public final String zab() {
|
|
return this.zab.zad();
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return this.zaa;
|
|
}
|
|
}
|