package com.applovin.impl; /* loaded from: classes.dex */ public class hq { private final String a; private final String b; public String a() { return this.a; } public String b() { return this.b; } public String toString() { return "VastJavaScriptResource{apiFramework='" + this.a + "', javascriptResourceUrl='" + this.b + "'}"; } private hq(String str, String str2) { this.a = str; this.b = str2; } public static hq a(es esVar, com.applovin.impl.sdk.j jVar) { if (esVar == null) { throw new IllegalArgumentException("No node specified."); } if (jVar != null) { try { return new hq((String) esVar.a().get("apiFramework"), esVar.d()); } catch (Throwable th) { jVar.J(); if (com.applovin.impl.sdk.n.a()) { jVar.J().a("VastJavaScriptResource", "Error occurred while initializing", th); } jVar.E().a("VastJavaScriptResource", th); return null; } } throw new IllegalArgumentException("No sdk specified."); } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } hq hqVar = (hq) obj; String str = this.a; if (str == null ? hqVar.a != null : !str.equals(hqVar.a)) { return false; } String str2 = this.b; String str3 = hqVar.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); } }