package com.applovin.impl; import com.applovin.impl.sdk.utils.StringUtils; /* loaded from: classes.dex */ public class jq { private String a; private String b; private jq() { } public String toString() { return "VastSystemInfo{name='" + this.a + "', version='" + this.b + "'}"; } public static jq a(es esVar, jq jqVar, com.applovin.impl.sdk.j jVar) { if (esVar == null) { throw new IllegalArgumentException("No node specified."); } if (jVar != null) { if (jqVar == null) { try { jqVar = new jq(); } catch (Throwable th) { jVar.J(); if (com.applovin.impl.sdk.n.a()) { jVar.J().a("VastSystemInfo", "Error occurred while initializing", th); } jVar.E().a("VastSystemInfo", th); return null; } } if (!StringUtils.isValidString(jqVar.a)) { String d = esVar.d(); if (StringUtils.isValidString(d)) { jqVar.a = d; } } if (!StringUtils.isValidString(jqVar.b)) { String str = (String) esVar.a().get("version"); if (StringUtils.isValidString(str)) { jqVar.b = str; } } return jqVar; } throw new IllegalArgumentException("No sdk specified."); } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof jq)) { return false; } jq jqVar = (jq) obj; String str = this.a; if (str == null ? jqVar.a != null : !str.equals(jqVar.a)) { return false; } String str2 = this.b; String str3 = jqVar.b; return str2 != null ? str2.equals(str3) : str3 == null; } public int hashCode() { String str = this.a; int hashCode = (str != null ? str.hashCode() : 0) * 31; String str2 = this.b; return hashCode + (str2 != null ? str2.hashCode() : 0); } }