what-the-bank/sources/com/airbnb/deeplinkdispatch/UrlElement.java

38 lines
1.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.airbnb.deeplinkdispatch;
import com.huawei.hms.android.SystemUtils;
import o.C14957gcv;
import o.gdP;
/* loaded from: classes.dex */
public final class UrlElement {
private final byte typeFlag;
private final byte[] value;
public UrlElement(byte b, byte[] bArr) {
C14957gcv.e(bArr, "");
this.typeFlag = b;
this.value = bArr;
}
public final String toString() {
StringBuilder sb = new StringBuilder("Type: ");
sb.append(typeToString());
sb.append(", Value: ");
sb.append(new String(this.value, gdP.a));
return sb.toString();
}
private final String typeToString() {
return NodeMetadata.Companion.isComponentTypeRoot(this.typeFlag) ? "root" : NodeMetadata.Companion.isComponentTypeScheme(this.typeFlag) ? "scheme" : NodeMetadata.Companion.isComponentTypeHost(this.typeFlag) ? "host" : NodeMetadata.Companion.isComponentTypePathSegment(this.typeFlag) ? "path_segment" : SystemUtils.UNKNOWN;
}
public final byte[] getValue() {
return this.value;
}
public final byte getTypeFlag() {
return this.typeFlag;
}
}