package com.google.firebase.components; import com.google.android.gms.common.internal.Preconditions; /* compiled from: com.google.firebase:firebase-common@@16.0.2 */ /* loaded from: classes.dex */ public final class Dependency { private final Class a; private final int b; private final int c; private Dependency(Class cls, int i, int i2) { Preconditions.a(cls, "Null dependency anInterface."); this.a = cls; this.b = i; this.c = i2; } public static Dependency a(Class cls) { return new Dependency(cls, 1, 0); } public final boolean b() { return this.b == 1; } public final boolean c() { return this.c == 0; } public final boolean equals(Object obj) { if (obj instanceof Dependency) { Dependency dependency = (Dependency) obj; if (this.a == dependency.a && this.b == dependency.b && this.c == dependency.c) { return true; } } return false; } public final int hashCode() { return ((((this.a.hashCode() ^ 1000003) * 1000003) ^ this.b) * 1000003) ^ this.c; } public final String toString() { StringBuilder sb = new StringBuilder("Dependency{anInterface="); sb.append(this.a); sb.append(", required="); sb.append(this.b == 1); sb.append(", direct="); sb.append(this.c == 0); sb.append("}"); return sb.toString(); } public final Class a() { return this.a; } }