Rabbit-R1/android (non root)/java/sources/androidx/navigation/NavDeepLinkDslBuilder.java
2024-05-21 17:08:36 -04:00

63 lines
3 KiB
Java

package androidx.navigation;
import androidx.navigation.NavDeepLink;
import io.sentry.protocol.OperatingSystem;
import kotlin.Metadata;
/* compiled from: NavDeepLinkDslBuilder.kt */
@NavDeepLinkDsl
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0007\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002J\r\u0010\u0012\u001a\u00020\u0013H\u0000¢\u0006\u0002\b\u0014R(\u0010\u0005\u001a\u0004\u0018\u00010\u00042\b\u0010\u0003\u001a\u0004\u0018\u00010\u0004@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\tR\u000e\u0010\n\u001a\u00020\u000bX\u0082\u0004¢\u0006\u0002\n\u0000R\u001c\u0010\f\u001a\u0004\u0018\u00010\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\r\u0010\u0007\"\u0004\b\u000e\u0010\tR\u001c\u0010\u000f\u001a\u0004\u0018\u00010\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0010\u0010\u0007\"\u0004\b\u0011\u0010\\u0006\u0015"}, d2 = {"Landroidx/navigation/NavDeepLinkDslBuilder;", "", "()V", "p", "", "action", "getAction", "()Ljava/lang/String;", "setAction", "(Ljava/lang/String;)V", "builder", "Landroidx/navigation/NavDeepLink$Builder;", "mimeType", "getMimeType", "setMimeType", "uriPattern", "getUriPattern", "setUriPattern", OperatingSystem.JsonKeys.BUILD, "Landroidx/navigation/NavDeepLink;", "build$navigation_common_release", "navigation-common_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
/* loaded from: classes2.dex */
public final class NavDeepLinkDslBuilder {
private String action;
private final NavDeepLink.Builder builder = new NavDeepLink.Builder();
private String mimeType;
private String uriPattern;
public final String getAction() {
return this.action;
}
public final String getMimeType() {
return this.mimeType;
}
public final String getUriPattern() {
return this.uriPattern;
}
public final void setMimeType(String str) {
this.mimeType = str;
}
public final void setUriPattern(String str) {
this.uriPattern = str;
}
public final void setAction(String str) {
if (str != null && str.length() == 0) {
throw new IllegalArgumentException("The NavDeepLink cannot have an empty action.");
}
this.action = str;
}
public final NavDeepLink build$navigation_common_release() {
NavDeepLink.Builder builder = this.builder;
String str = this.uriPattern;
if (str == null && this.action == null && this.mimeType == null) {
throw new IllegalStateException("The NavDeepLink must have an uri, action, and/or mimeType.".toString());
}
if (str != null) {
builder.setUriPattern(str);
}
String str2 = this.action;
if (str2 != null) {
builder.setAction(str2);
}
String str3 = this.mimeType;
if (str3 != null) {
builder.setMimeType(str3);
}
return builder.build();
}
}