alexandroid/decompiled/jadx/sources/androidx/webkit/UserAgentMetadata.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

286 lines
9.9 KiB
Java

package androidx.webkit;
import androidx.annotation.RestrictTo;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import rx.Single$$ExternalSyntheticBUOutline0;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
/* loaded from: classes14.dex */
public final class UserAgentMetadata {
public static final int BITNESS_DEFAULT = 0;
private final String mArchitecture;
private int mBitness;
private final List<BrandVersion> mBrandVersionList;
private final String mFullVersion;
private boolean mMobile;
private final String mModel;
private final String mPlatform;
private final String mPlatformVersion;
private boolean mWow64;
@RestrictTo({RestrictTo.Scope.LIBRARY})
private UserAgentMetadata(List<BrandVersion> list, String str, String str2, String str3, String str4, String str5, boolean z, int i, boolean z2) {
this.mBrandVersionList = list;
this.mFullVersion = str;
this.mPlatform = str2;
this.mPlatformVersion = str3;
this.mArchitecture = str4;
this.mModel = str5;
this.mMobile = z;
this.mBitness = i;
this.mWow64 = z2;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof UserAgentMetadata)) {
return false;
}
UserAgentMetadata userAgentMetadata = (UserAgentMetadata) obj;
return this.mMobile == userAgentMetadata.mMobile && this.mBitness == userAgentMetadata.mBitness && this.mWow64 == userAgentMetadata.mWow64 && Objects.equals(this.mBrandVersionList, userAgentMetadata.mBrandVersionList) && Objects.equals(this.mFullVersion, userAgentMetadata.mFullVersion) && Objects.equals(this.mPlatform, userAgentMetadata.mPlatform) && Objects.equals(this.mPlatformVersion, userAgentMetadata.mPlatformVersion) && Objects.equals(this.mArchitecture, userAgentMetadata.mArchitecture) && Objects.equals(this.mModel, userAgentMetadata.mModel);
}
public String getArchitecture() {
return this.mArchitecture;
}
public int getBitness() {
return this.mBitness;
}
public List<BrandVersion> getBrandVersionList() {
return this.mBrandVersionList;
}
public String getFullVersion() {
return this.mFullVersion;
}
public String getModel() {
return this.mModel;
}
public String getPlatform() {
return this.mPlatform;
}
public String getPlatformVersion() {
return this.mPlatformVersion;
}
public int hashCode() {
return Objects.hash(this.mBrandVersionList, this.mFullVersion, this.mPlatform, this.mPlatformVersion, this.mArchitecture, this.mModel, Boolean.valueOf(this.mMobile), Integer.valueOf(this.mBitness), Boolean.valueOf(this.mWow64));
}
public boolean isMobile() {
return this.mMobile;
}
public boolean isWow64() {
return this.mWow64;
}
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
public static final class BrandVersion {
private final String mBrand;
private final String mFullVersion;
private final String mMajorVersion;
@RestrictTo({RestrictTo.Scope.LIBRARY})
private BrandVersion(String str, String str2, String str3) {
this.mBrand = str;
this.mMajorVersion = str2;
this.mFullVersion = str3;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof BrandVersion)) {
return false;
}
BrandVersion brandVersion = (BrandVersion) obj;
return Objects.equals(this.mBrand, brandVersion.mBrand) && Objects.equals(this.mMajorVersion, brandVersion.mMajorVersion) && Objects.equals(this.mFullVersion, brandVersion.mFullVersion);
}
public String getBrand() {
return this.mBrand;
}
public String getFullVersion() {
return this.mFullVersion;
}
public String getMajorVersion() {
return this.mMajorVersion;
}
public int hashCode() {
return Objects.hash(this.mBrand, this.mMajorVersion, this.mFullVersion);
}
public String toString() {
return this.mBrand + "," + this.mMajorVersion + "," + this.mFullVersion;
}
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
public static final class Builder {
private String mBrand;
private String mFullVersion;
private String mMajorVersion;
public Builder(BrandVersion brandVersion) {
this.mBrand = brandVersion.getBrand();
this.mMajorVersion = brandVersion.getMajorVersion();
this.mFullVersion = brandVersion.getFullVersion();
}
public BrandVersion build() {
String str;
String str2;
String str3 = this.mBrand;
if (str3 != null && !str3.trim().isEmpty() && (str = this.mMajorVersion) != null && !str.trim().isEmpty() && (str2 = this.mFullVersion) != null && !str2.trim().isEmpty()) {
return new BrandVersion(this.mBrand, this.mMajorVersion, this.mFullVersion);
}
Single$$ExternalSyntheticBUOutline0.m$2("Brand name, major version and full version should not be null or blank.");
return null;
}
public Builder setBrand(String str) {
if (str.trim().isEmpty()) {
Single$$ExternalSyntheticBUOutline0.m$3("Brand should not be blank.");
return null;
}
this.mBrand = str;
return this;
}
public Builder setFullVersion(String str) {
if (str.trim().isEmpty()) {
Single$$ExternalSyntheticBUOutline0.m$3("FullVersion should not be blank.");
return null;
}
this.mFullVersion = str;
return this;
}
public Builder setMajorVersion(String str) {
if (str.trim().isEmpty()) {
Single$$ExternalSyntheticBUOutline0.m$3("MajorVersion should not be blank.");
return null;
}
this.mMajorVersion = str;
return this;
}
public Builder() {
}
}
}
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
public static final class Builder {
private String mArchitecture;
private int mBitness;
private List<BrandVersion> mBrandVersionList;
private String mFullVersion;
private boolean mMobile;
private String mModel;
private String mPlatform;
private String mPlatformVersion;
private boolean mWow64;
public Builder(UserAgentMetadata userAgentMetadata) {
this.mBrandVersionList = new ArrayList();
this.mMobile = true;
this.mBitness = 0;
this.mWow64 = false;
this.mBrandVersionList = userAgentMetadata.getBrandVersionList();
this.mFullVersion = userAgentMetadata.getFullVersion();
this.mPlatform = userAgentMetadata.getPlatform();
this.mPlatformVersion = userAgentMetadata.getPlatformVersion();
this.mArchitecture = userAgentMetadata.getArchitecture();
this.mModel = userAgentMetadata.getModel();
this.mMobile = userAgentMetadata.isMobile();
this.mBitness = userAgentMetadata.getBitness();
this.mWow64 = userAgentMetadata.isWow64();
}
public UserAgentMetadata build() {
return new UserAgentMetadata(this.mBrandVersionList, this.mFullVersion, this.mPlatform, this.mPlatformVersion, this.mArchitecture, this.mModel, this.mMobile, this.mBitness, this.mWow64);
}
public Builder setArchitecture(String str) {
this.mArchitecture = str;
return this;
}
public Builder setBitness(int i) {
this.mBitness = i;
return this;
}
public Builder setBrandVersionList(List<BrandVersion> list) {
this.mBrandVersionList = list;
return this;
}
public Builder setFullVersion(String str) {
if (str == null) {
this.mFullVersion = null;
return this;
}
if (str.trim().isEmpty()) {
Single$$ExternalSyntheticBUOutline0.m$3("Full version should not be blank.");
return null;
}
this.mFullVersion = str;
return this;
}
public Builder setMobile(boolean z) {
this.mMobile = z;
return this;
}
public Builder setModel(String str) {
this.mModel = str;
return this;
}
public Builder setPlatform(String str) {
if (str == null) {
this.mPlatform = null;
return this;
}
if (str.trim().isEmpty()) {
Single$$ExternalSyntheticBUOutline0.m$3("Platform should not be blank.");
return null;
}
this.mPlatform = str;
return this;
}
public Builder setPlatformVersion(String str) {
this.mPlatformVersion = str;
return this;
}
public Builder setWow64(boolean z) {
this.mWow64 = z;
return this;
}
public Builder() {
this.mBrandVersionList = new ArrayList();
this.mMobile = true;
this.mBitness = 0;
this.mWow64 = false;
}
}
}