package com.airbnb.deeplinkdispatch; import com.airbnb.deeplinkdispatch.DeepLinkEntry; import java.util.Map; import o.C14854gaM; import o.C14957gcv; import o.InterfaceC13393fZL; import o.fZZ; /* loaded from: classes.dex */ public final class DeepLinkMatchResult implements Comparable { private final DeepLinkEntry deeplinkEntry; private final InterfaceC13393fZL firstConfigurablePathSegmentIndex$delegate; private final InterfaceC13393fZL firstNonConcreteIndex$delegate; private final InterfaceC13393fZL firstPlaceholderIndex$delegate; private final Map> parameterMap; /* JADX WARN: Multi-variable type inference failed */ public DeepLinkMatchResult(DeepLinkEntry deepLinkEntry, Map> map) { C14957gcv.e(deepLinkEntry, ""); C14957gcv.e(map, ""); this.deeplinkEntry = deepLinkEntry; this.parameterMap = map; DeepLinkMatchResult$firstConfigurablePathSegmentIndex$2 deepLinkMatchResult$firstConfigurablePathSegmentIndex$2 = new DeepLinkMatchResult$firstConfigurablePathSegmentIndex$2(this); C14957gcv.e(deepLinkMatchResult$firstConfigurablePathSegmentIndex$2, ""); this.firstConfigurablePathSegmentIndex$delegate = new fZZ(deepLinkMatchResult$firstConfigurablePathSegmentIndex$2); DeepLinkMatchResult$firstPlaceholderIndex$2 deepLinkMatchResult$firstPlaceholderIndex$2 = new DeepLinkMatchResult$firstPlaceholderIndex$2(this); C14957gcv.e(deepLinkMatchResult$firstPlaceholderIndex$2, ""); this.firstPlaceholderIndex$delegate = new fZZ(deepLinkMatchResult$firstPlaceholderIndex$2); DeepLinkMatchResult$firstNonConcreteIndex$2 deepLinkMatchResult$firstNonConcreteIndex$2 = new DeepLinkMatchResult$firstNonConcreteIndex$2(this); C14957gcv.e(deepLinkMatchResult$firstNonConcreteIndex$2, ""); this.firstNonConcreteIndex$delegate = new fZZ(deepLinkMatchResult$firstNonConcreteIndex$2); } public final Map getParameters(DeepLinkUri deepLinkUri) { C14957gcv.e(deepLinkUri, ""); Map map = this.parameterMap.get(deepLinkUri); if (map != null) { return map; } C14854gaM c14854gaM = C14854gaM.c; C14957gcv.d(c14854gaM, ""); return c14854gaM; } public final String toString() { String str; StringBuilder sb = new StringBuilder("uriTemplate: "); sb.append(this.deeplinkEntry.getUriTemplate()); sb.append(" activity: "); sb.append((Object) this.deeplinkEntry.getClazz().getName()); sb.append(' '); if (this.deeplinkEntry instanceof DeepLinkEntry.MethodDeeplinkEntry) { StringBuilder sb2 = new StringBuilder("method: "); sb2.append(((DeepLinkEntry.MethodDeeplinkEntry) this.deeplinkEntry).getMethod()); sb2.append(' '); str = sb2.toString(); } else { str = ""; } sb.append(str); sb.append("parameters: "); sb.append(this.parameterMap); return sb.toString(); } /* JADX INFO: Access modifiers changed from: private */ public final int getFirstConfigurablePathSegmentIndex() { return ((Number) this.firstConfigurablePathSegmentIndex$delegate.e()).intValue(); } /* JADX INFO: Access modifiers changed from: private */ public final int getFirstPlaceholderIndex() { return ((Number) this.firstPlaceholderIndex$delegate.e()).intValue(); } private final int getFirstNonConcreteIndex() { return ((Number) this.firstNonConcreteIndex$delegate.e()).intValue(); } @Override // java.lang.Comparable public final int compareTo(DeepLinkMatchResult deepLinkMatchResult) { C14957gcv.e(deepLinkMatchResult, ""); if (getFirstNonConcreteIndex() < deepLinkMatchResult.getFirstNonConcreteIndex()) { return -1; } if (getFirstNonConcreteIndex() == deepLinkMatchResult.getFirstNonConcreteIndex()) { if (getFirstNonConcreteIndex() == -1 || this.deeplinkEntry.getUriTemplate().charAt(getFirstNonConcreteIndex()) == deepLinkMatchResult.deeplinkEntry.getUriTemplate().charAt(getFirstNonConcreteIndex())) { return 0; } if (this.deeplinkEntry.getUriTemplate().charAt(getFirstNonConcreteIndex()) == '<') { return -1; } } return 1; } public final int hashCode() { return (this.deeplinkEntry.hashCode() * 31) + this.parameterMap.hashCode(); } public final Map> getParameterMap() { return this.parameterMap; } public final DeepLinkEntry getDeeplinkEntry() { return this.deeplinkEntry; } public final boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof DeepLinkMatchResult)) { return false; } DeepLinkMatchResult deepLinkMatchResult = (DeepLinkMatchResult) obj; return C14957gcv.b(this.deeplinkEntry, deepLinkMatchResult.deeplinkEntry) && C14957gcv.b(this.parameterMap, deepLinkMatchResult.parameterMap); } public final DeepLinkMatchResult copy(DeepLinkEntry deepLinkEntry, Map> map) { C14957gcv.e(deepLinkEntry, ""); C14957gcv.e(map, ""); return new DeepLinkMatchResult(deepLinkEntry, map); } public final Map> component2() { return this.parameterMap; } public final DeepLinkEntry component1() { return this.deeplinkEntry; } /* JADX WARN: Multi-variable type inference failed */ public static /* synthetic */ DeepLinkMatchResult copy$default(DeepLinkMatchResult deepLinkMatchResult, DeepLinkEntry deepLinkEntry, Map map, int i, Object obj) { if ((i & 1) != 0) { deepLinkEntry = deepLinkMatchResult.deeplinkEntry; } if ((i & 2) != 0) { map = deepLinkMatchResult.parameterMap; } return deepLinkMatchResult.copy(deepLinkEntry, map); } }