mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 02:17:18 +01:00
108 lines
3.6 KiB
Java
108 lines
3.6 KiB
Java
package com.google.android.gms.common;
|
|
|
|
import android.os.Parcel;
|
|
import android.os.Parcelable;
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import com.google.android.gms.common.annotation.KeepForSdk;
|
|
import com.google.android.gms.common.internal.Objects;
|
|
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
|
|
import com.google.android.gms.common.internal.safeparcel.SafeParcelable;
|
|
import org.apache.logging.log4j.message.StructuredDataId;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@KeepForSdk
|
|
@SafeParcelable.Class(creator = "FeatureCreator")
|
|
/* loaded from: classes7.dex */
|
|
public class Feature extends AbstractSafeParcelable {
|
|
|
|
@NonNull
|
|
public static final Parcelable.Creator<Feature> CREATOR = new zzb();
|
|
|
|
@SafeParcelable.Field(getter = "getName", id = 1)
|
|
private final String zza;
|
|
|
|
@SafeParcelable.Field(getter = "getOldVersion", id = 2)
|
|
@Deprecated
|
|
private final int zzb;
|
|
|
|
@SafeParcelable.Field(defaultValue = StructuredDataId.RESERVED, getter = "getVersion", id = 3)
|
|
private final long zzc;
|
|
|
|
@SafeParcelable.Field(defaultValue = "false", getter = "getIsFullyRolledOut", id = 4)
|
|
private final boolean zzd;
|
|
|
|
@SafeParcelable.Constructor
|
|
public Feature(@NonNull @SafeParcelable.Param(id = 1) String str, @SafeParcelable.Param(id = 2) int i, @SafeParcelable.Param(id = 3) long j, @SafeParcelable.Param(id = 4) boolean z) {
|
|
this.zza = str;
|
|
this.zzb = i;
|
|
this.zzc = j;
|
|
this.zzd = z;
|
|
}
|
|
|
|
public final boolean equals(@Nullable Object obj) {
|
|
if (obj instanceof Feature) {
|
|
Feature feature = (Feature) obj;
|
|
if (Objects.equal(getName(), feature.getName()) && getVersion() == feature.getVersion() && getIsFullyRolledOut() == feature.getIsFullyRolledOut()) {
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@KeepForSdk
|
|
public boolean getIsFullyRolledOut() {
|
|
return this.zzd;
|
|
}
|
|
|
|
@NonNull
|
|
@KeepForSdk
|
|
public String getName() {
|
|
return this.zza;
|
|
}
|
|
|
|
@KeepForSdk
|
|
public long getVersion() {
|
|
long j = this.zzc;
|
|
return j == -1 ? this.zzb : j;
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return Objects.hashCode(getName(), Long.valueOf(getVersion()), Boolean.valueOf(getIsFullyRolledOut()));
|
|
}
|
|
|
|
@NonNull
|
|
public final String toString() {
|
|
Objects.ToStringHelper stringHelper = Objects.toStringHelper(this);
|
|
stringHelper.add("name", getName());
|
|
stringHelper.add("version", Long.valueOf(getVersion()));
|
|
stringHelper.add("is_fully_rolled_out", Boolean.valueOf(getIsFullyRolledOut()));
|
|
return stringHelper.toString();
|
|
}
|
|
|
|
@Override // android.os.Parcelable
|
|
public final void writeToParcel(@NonNull Parcel parcel, int i) {
|
|
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
|
|
SafeParcelWriter.writeString(parcel, 1, getName(), false);
|
|
SafeParcelWriter.writeInt(parcel, 2, this.zzb);
|
|
SafeParcelWriter.writeLong(parcel, 3, getVersion());
|
|
SafeParcelWriter.writeBoolean(parcel, 4, getIsFullyRolledOut());
|
|
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
|
|
}
|
|
|
|
@KeepForSdk
|
|
public Feature(@NonNull String str, int i, long j) {
|
|
this(str, i, j, false);
|
|
}
|
|
|
|
@KeepForSdk
|
|
public Feature(@NonNull String str, long j) {
|
|
this(str, -1, j, false);
|
|
}
|
|
|
|
@KeepForSdk
|
|
public Feature(@NonNull String str, long j, boolean z) {
|
|
this(str, -1, j, z);
|
|
}
|
|
}
|