mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-13 09:27:16 +01:00
455 lines
20 KiB
Java
455 lines
20 KiB
Java
package okio;
|
|
|
|
import com.amazon.alexa.presence.utils.MetricsUtil;
|
|
import com.amazon.alexa.redesign.view.container.CardStudioAgentSpaceMetrics;
|
|
import com.amazon.alexa.routing.api.RouteParameter;
|
|
import com.amazon.deecomms.common.metrics.MetricKeys;
|
|
import com.dee.app.metrics.MetricsConstants;
|
|
import java.io.File;
|
|
import java.nio.file.Paths;
|
|
import java.util.ArrayList;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
import kotlin.Metadata;
|
|
import kotlin.collections.CollectionsKt;
|
|
import kotlin.jvm.JvmField;
|
|
import kotlin.jvm.JvmName;
|
|
import kotlin.jvm.JvmOverloads;
|
|
import kotlin.jvm.JvmStatic;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import org.jetbrains.annotations.NotNull;
|
|
import org.jetbrains.annotations.Nullable;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000P\n\u0002\u0018\u0002\n\u0002\u0010\u000f\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0007\n\u0002\u0010 \n\u0002\b\u0005\n\u0002\u0010\f\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0010\u0000\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u0000 .2\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001.B\u000f\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0011\u0010\u001d\u001a\u00020\u001e2\u0006\u0010\u001f\u001a\u00020\u0000H\u0096\u0002J\u0016\u0010 \u001a\u00020\u00002\u0006\u0010!\u001a\u00020\rH\u0087\u0002¢\u0006\u0002\b\"J\u0016\u0010 \u001a\u00020\u00002\u0006\u0010!\u001a\u00020\u0003H\u0087\u0002¢\u0006\u0002\b\"J\u0016\u0010 \u001a\u00020\u00002\u0006\u0010!\u001a\u00020\u0000H\u0087\u0002¢\u0006\u0002\b\"J\u0013\u0010#\u001a\u00020\b2\b\u0010\u001f\u001a\u0004\u0018\u00010$H\u0096\u0002J\b\u0010%\u001a\u00020\u001eH\u0016J\u0006\u0010&\u001a\u00020\u0000J\u000e\u0010'\u001a\u00020\u00002\u0006\u0010\u001f\u001a\u00020\u0000J\u0018\u0010\"\u001a\u00020\u00002\u0006\u0010!\u001a\u00020\r2\b\b\u0002\u0010(\u001a\u00020\bJ\u0018\u0010\"\u001a\u00020\u00002\u0006\u0010!\u001a\u00020\u00032\b\b\u0002\u0010(\u001a\u00020\bJ\u0018\u0010\"\u001a\u00020\u00002\u0006\u0010!\u001a\u00020\u00002\b\b\u0002\u0010(\u001a\u00020\bJ\u0006\u0010)\u001a\u00020*J\u0006\u0010+\u001a\u00020,J\b\u0010-\u001a\u00020\rH\u0016R\u0014\u0010\u0002\u001a\u00020\u0003X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006R\u0011\u0010\u0007\u001a\u00020\b8F¢\u0006\u0006\u001a\u0004\b\u0007\u0010\tR\u0011\u0010\n\u001a\u00020\b8F¢\u0006\u0006\u001a\u0004\b\n\u0010\tR\u0011\u0010\u000b\u001a\u00020\b8F¢\u0006\u0006\u001a\u0004\b\u000b\u0010\tR\u0011\u0010\f\u001a\u00020\r8G¢\u0006\u0006\u001a\u0004\b\f\u0010\u000eR\u0011\u0010\u000f\u001a\u00020\u00038G¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u0006R\u0013\u0010\u0010\u001a\u0004\u0018\u00010\u00008G¢\u0006\u0006\u001a\u0004\b\u0010\u0010\u0011R\u0013\u0010\u0012\u001a\u0004\u0018\u00010\u00008F¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0011R\u0017\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\r0\u00158F¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017R\u0017\u0010\u0018\u001a\b\u0012\u0004\u0012\u00020\u00030\u00158F¢\u0006\u0006\u001a\u0004\b\u0019\u0010\u0017R\u0013\u0010\u001a\u001a\u0004\u0018\u00010\u001b8G¢\u0006\u0006\u001a\u0004\b\u001a\u0010\u001c¨\u0006/"}, d2 = {"Lokio/Path;", "", "bytes", "Lokio/ByteString;", "(Lokio/ByteString;)V", "getBytes$okio", "()Lokio/ByteString;", "isAbsolute", "", "()Z", "isRelative", "isRoot", "name", "", "()Ljava/lang/String;", "nameBytes", RouteParameter.PARENT, "()Lokio/Path;", "root", "getRoot", "segments", "", "getSegments", "()Ljava/util/List;", "segmentsBytes", "getSegmentsBytes", "volumeLetter", "", "()Ljava/lang/Character;", "compareTo", "", CardStudioAgentSpaceMetrics.DimensionValue.SCHEME_OTHER, "div", MetricKeys.VALUE_IS_CHILD, MetricsUtil.MetricsId.RESOLVE, "equals", "", "hashCode", "normalized", "relativeTo", "normalize", "toFile", "Ljava/io/File;", "toNioPath", "Ljava/nio/file/Path;", "toString", "Companion", "okio"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
@SourceDebugExtension({"SMAP\nPath.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Path.kt\nokio/Path\n+ 2 Path.kt\nokio/internal/-Path\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,132:1\n45#2,3:133\n53#2,28:136\n59#2,22:168\n112#2:190\n117#2:191\n122#2,6:192\n139#2,5:198\n149#2:203\n154#2,25:204\n194#2:229\n199#2,11:230\n204#2,6:241\n199#2,11:247\n204#2,6:258\n228#2,36:264\n268#2:300\n282#2:301\n287#2:302\n292#2:303\n297#2:304\n1549#3:164\n1620#3,3:165\n*S KotlinDebug\n*F\n+ 1 Path.kt\nokio/Path\n*L\n44#1:133,3\n47#1:136,28\n50#1:168,22\n53#1:190\n56#1:191\n60#1:192,6\n64#1:198,5\n68#1:203\n72#1:204,25\n75#1:229\n78#1:230,11\n81#1:241,6\n87#1:247,11\n90#1:258,6\n95#1:264,36\n97#1:300\n104#1:301\n106#1:302\n108#1:303\n110#1:304\n47#1:164\n47#1:165,3\n*E\n"})
|
|
/* loaded from: classes10.dex */
|
|
public final class Path implements Comparable<Path> {
|
|
|
|
/* renamed from: Companion, reason: from kotlin metadata */
|
|
@NotNull
|
|
public static final Companion INSTANCE = new Companion(null);
|
|
|
|
@JvmField
|
|
@NotNull
|
|
public static final String DIRECTORY_SEPARATOR;
|
|
|
|
@NotNull
|
|
private final ByteString bytes;
|
|
|
|
static {
|
|
String str = File.separator;
|
|
str.getClass();
|
|
DIRECTORY_SEPARATOR = str;
|
|
}
|
|
|
|
public Path(@NotNull ByteString byteString) {
|
|
byteString.getClass();
|
|
this.bytes = byteString;
|
|
}
|
|
|
|
@JvmStatic
|
|
@JvmName(name = MetricsConstants.Method.CACHE_GET)
|
|
@NotNull
|
|
@JvmOverloads
|
|
public static final Path get(@NotNull File file) {
|
|
return INSTANCE.get(file);
|
|
}
|
|
|
|
public static /* synthetic */ Path resolve$default(Path path, String str, boolean z, int i, Object obj) {
|
|
if ((i & 2) != 0) {
|
|
z = false;
|
|
}
|
|
return path.resolve(str, z);
|
|
}
|
|
|
|
@Override // java.lang.Comparable
|
|
public int compareTo(@NotNull Path other) {
|
|
other.getClass();
|
|
return getBytes().compareTo(other.getBytes());
|
|
}
|
|
|
|
public boolean equals(@Nullable Object other) {
|
|
return (other instanceof Path) && Intrinsics.areEqual(((Path) other).getBytes(), getBytes());
|
|
}
|
|
|
|
@NotNull
|
|
/* renamed from: getBytes$okio, reason: from getter */
|
|
public final ByteString getBytes() {
|
|
return this.bytes;
|
|
}
|
|
|
|
@Nullable
|
|
public final Path getRoot() {
|
|
int rootLength = okio.internal.Path.rootLength(this);
|
|
if (rootLength == -1) {
|
|
return null;
|
|
}
|
|
return new Path(getBytes().substring(0, rootLength));
|
|
}
|
|
|
|
@NotNull
|
|
public final List<String> getSegments() {
|
|
ArrayList arrayList = new ArrayList();
|
|
int rootLength = okio.internal.Path.rootLength(this);
|
|
if (rootLength == -1) {
|
|
rootLength = 0;
|
|
} else if (rootLength < getBytes().size() && getBytes().getByte(rootLength) == 92) {
|
|
rootLength++;
|
|
}
|
|
int size = getBytes().size();
|
|
int i = rootLength;
|
|
while (rootLength < size) {
|
|
if (getBytes().getByte(rootLength) == 47 || getBytes().getByte(rootLength) == 92) {
|
|
arrayList.add(getBytes().substring(i, rootLength));
|
|
i = rootLength + 1;
|
|
}
|
|
rootLength++;
|
|
}
|
|
if (i < getBytes().size()) {
|
|
arrayList.add(getBytes().substring(i, getBytes().size()));
|
|
}
|
|
ArrayList arrayList2 = new ArrayList(CollectionsKt.collectionSizeOrDefault(arrayList, 10));
|
|
Iterator it2 = arrayList.iterator();
|
|
while (it2.hasNext()) {
|
|
arrayList2.add(((ByteString) it2.next()).utf8());
|
|
}
|
|
return arrayList2;
|
|
}
|
|
|
|
@NotNull
|
|
public final List<ByteString> getSegmentsBytes() {
|
|
ArrayList arrayList = new ArrayList();
|
|
int rootLength = okio.internal.Path.rootLength(this);
|
|
if (rootLength == -1) {
|
|
rootLength = 0;
|
|
} else if (rootLength < getBytes().size() && getBytes().getByte(rootLength) == 92) {
|
|
rootLength++;
|
|
}
|
|
int size = getBytes().size();
|
|
int i = rootLength;
|
|
while (rootLength < size) {
|
|
if (getBytes().getByte(rootLength) == 47 || getBytes().getByte(rootLength) == 92) {
|
|
arrayList.add(getBytes().substring(i, rootLength));
|
|
i = rootLength + 1;
|
|
}
|
|
rootLength++;
|
|
}
|
|
if (i < getBytes().size()) {
|
|
arrayList.add(getBytes().substring(i, getBytes().size()));
|
|
}
|
|
return arrayList;
|
|
}
|
|
|
|
public int hashCode() {
|
|
return getBytes().hashCode();
|
|
}
|
|
|
|
public final boolean isAbsolute() {
|
|
return okio.internal.Path.rootLength(this) != -1;
|
|
}
|
|
|
|
public final boolean isRelative() {
|
|
return okio.internal.Path.rootLength(this) == -1;
|
|
}
|
|
|
|
public final boolean isRoot() {
|
|
return okio.internal.Path.rootLength(this) == getBytes().size();
|
|
}
|
|
|
|
@JvmName(name = "name")
|
|
@NotNull
|
|
public final String name() {
|
|
return nameBytes().utf8();
|
|
}
|
|
|
|
@JvmName(name = "nameBytes")
|
|
@NotNull
|
|
public final ByteString nameBytes() {
|
|
int indexOfLastSlash = okio.internal.Path.getIndexOfLastSlash(this);
|
|
return indexOfLastSlash != -1 ? ByteString.substring$default(getBytes(), indexOfLastSlash + 1, 0, 2, null) : (volumeLetter() == null || getBytes().size() != 2) ? getBytes() : ByteString.EMPTY;
|
|
}
|
|
|
|
@NotNull
|
|
public final Path normalized() {
|
|
return INSTANCE.get(toString(), true);
|
|
}
|
|
|
|
@JvmName(name = RouteParameter.PARENT)
|
|
@Nullable
|
|
public final Path parent() {
|
|
if (Intrinsics.areEqual(getBytes(), okio.internal.Path.DOT) || Intrinsics.areEqual(getBytes(), okio.internal.Path.SLASH) || Intrinsics.areEqual(getBytes(), okio.internal.Path.BACKSLASH) || okio.internal.Path.lastSegmentIsDotDot(this)) {
|
|
return null;
|
|
}
|
|
int indexOfLastSlash = okio.internal.Path.getIndexOfLastSlash(this);
|
|
if (indexOfLastSlash == 2 && volumeLetter() != null) {
|
|
if (getBytes().size() == 3) {
|
|
return null;
|
|
}
|
|
return new Path(ByteString.substring$default(getBytes(), 0, 3, 1, null));
|
|
}
|
|
if (indexOfLastSlash == 1 && getBytes().startsWith(okio.internal.Path.BACKSLASH)) {
|
|
return null;
|
|
}
|
|
if (indexOfLastSlash != -1 || volumeLetter() == null) {
|
|
return indexOfLastSlash == -1 ? new Path(okio.internal.Path.DOT) : indexOfLastSlash == 0 ? new Path(ByteString.substring$default(getBytes(), 0, 1, 1, null)) : new Path(ByteString.substring$default(getBytes(), 0, indexOfLastSlash, 1, null));
|
|
}
|
|
if (getBytes().size() == 2) {
|
|
return null;
|
|
}
|
|
return new Path(ByteString.substring$default(getBytes(), 0, 2, 1, null));
|
|
}
|
|
|
|
@NotNull
|
|
public final Path relativeTo(@NotNull Path other) {
|
|
other.getClass();
|
|
if (!Intrinsics.areEqual(getRoot(), other.getRoot())) {
|
|
Path$$ExternalSyntheticBUOutline0.m("Paths of different roots cannot be relative to each other: ", this, " and ", other);
|
|
return null;
|
|
}
|
|
List<ByteString> segmentsBytes = getSegmentsBytes();
|
|
List<ByteString> segmentsBytes2 = other.getSegmentsBytes();
|
|
int min = Math.min(segmentsBytes.size(), segmentsBytes2.size());
|
|
int i = 0;
|
|
while (i < min && Intrinsics.areEqual(segmentsBytes.get(i), segmentsBytes2.get(i))) {
|
|
i++;
|
|
}
|
|
if (i == min && getBytes().size() == other.getBytes().size()) {
|
|
return Companion.get$default(INSTANCE, ".", false, 1, (Object) null);
|
|
}
|
|
if (segmentsBytes2.subList(i, segmentsBytes2.size()).indexOf(okio.internal.Path.DOT_DOT) != -1) {
|
|
Path$$ExternalSyntheticBUOutline0.m("Impossible relative path to resolve: ", this, " and ", other);
|
|
return null;
|
|
}
|
|
Buffer buffer = new Buffer();
|
|
ByteString slash = okio.internal.Path.getSlash(other);
|
|
if (slash == null && (slash = okio.internal.Path.getSlash(this)) == null) {
|
|
slash = okio.internal.Path.toSlash(DIRECTORY_SEPARATOR);
|
|
}
|
|
int size = segmentsBytes2.size();
|
|
for (int i2 = i; i2 < size; i2++) {
|
|
buffer.write(okio.internal.Path.DOT_DOT);
|
|
buffer.write(slash);
|
|
}
|
|
int size2 = segmentsBytes.size();
|
|
while (i < size2) {
|
|
buffer.write(segmentsBytes.get(i));
|
|
buffer.write(slash);
|
|
i++;
|
|
}
|
|
return okio.internal.Path.toPath(buffer, false);
|
|
}
|
|
|
|
@JvmName(name = MetricsUtil.MetricsId.RESOLVE)
|
|
@NotNull
|
|
public final Path resolve(@NotNull String child) {
|
|
child.getClass();
|
|
return okio.internal.Path.commonResolve(this, okio.internal.Path.toPath(new Buffer().writeUtf8(child), false), false);
|
|
}
|
|
|
|
@NotNull
|
|
public final File toFile() {
|
|
return new File(toString());
|
|
}
|
|
|
|
@NotNull
|
|
public final java.nio.file.Path toNioPath() {
|
|
java.nio.file.Path path = Paths.get(toString(), new String[0]);
|
|
path.getClass();
|
|
return path;
|
|
}
|
|
|
|
@NotNull
|
|
public String toString() {
|
|
return getBytes().utf8();
|
|
}
|
|
|
|
@JvmName(name = "volumeLetter")
|
|
@Nullable
|
|
public final Character volumeLetter() {
|
|
if (ByteString.indexOf$default(getBytes(), okio.internal.Path.SLASH, 0, 2, (Object) null) != -1 || getBytes().size() < 2 || getBytes().getByte(1) != 58) {
|
|
return null;
|
|
}
|
|
char c = (char) getBytes().getByte(0);
|
|
if (('a' > c || c >= '{') && ('A' > c || c >= '[')) {
|
|
return null;
|
|
}
|
|
return Character.valueOf(c);
|
|
}
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u001b\u0010\u0005\u001a\u00020\u0006*\u00020\u00072\b\b\u0002\u0010\b\u001a\u00020\tH\u0007¢\u0006\u0002\b\nJ\u001b\u0010\u0005\u001a\u00020\u0006*\u00020\u000b2\b\b\u0002\u0010\b\u001a\u00020\tH\u0007¢\u0006\u0002\b\nJ\u001b\u0010\f\u001a\u00020\u0006*\u00020\u00042\b\b\u0002\u0010\b\u001a\u00020\tH\u0007¢\u0006\u0002\b\nR\u0010\u0010\u0003\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0002\n\u0000¨\u0006\r"}, d2 = {"Lokio/Path$Companion;", "", "()V", "DIRECTORY_SEPARATOR", "", "toOkioPath", "Lokio/Path;", "Ljava/io/File;", "normalize", "", MetricsConstants.Method.CACHE_GET, "Ljava/nio/file/Path;", "toPath", "okio"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
public static /* synthetic */ Path get$default(Companion companion, String str, boolean z, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
z = false;
|
|
}
|
|
return companion.get(str, z);
|
|
}
|
|
|
|
@JvmStatic
|
|
@JvmName(name = MetricsConstants.Method.CACHE_GET)
|
|
@NotNull
|
|
@JvmOverloads
|
|
public final Path get(@NotNull File file, boolean z) {
|
|
file.getClass();
|
|
String file2 = file.toString();
|
|
file2.getClass();
|
|
return get(file2, z);
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public static /* synthetic */ Path get$default(Companion companion, File file, boolean z, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
z = false;
|
|
}
|
|
return companion.get(file, z);
|
|
}
|
|
|
|
public static /* synthetic */ Path get$default(Companion companion, java.nio.file.Path path, boolean z, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
z = false;
|
|
}
|
|
return companion.get(path, z);
|
|
}
|
|
|
|
@JvmStatic
|
|
@JvmName(name = MetricsConstants.Method.CACHE_GET)
|
|
@NotNull
|
|
@JvmOverloads
|
|
public final Path get(@NotNull String str) {
|
|
str.getClass();
|
|
return get$default(this, str, false, 1, (Object) null);
|
|
}
|
|
|
|
@JvmStatic
|
|
@JvmName(name = MetricsConstants.Method.CACHE_GET)
|
|
@NotNull
|
|
@JvmOverloads
|
|
public final Path get(@NotNull java.nio.file.Path path) {
|
|
path.getClass();
|
|
return get$default(this, path, false, 1, (Object) null);
|
|
}
|
|
|
|
@JvmStatic
|
|
@JvmName(name = MetricsConstants.Method.CACHE_GET)
|
|
@NotNull
|
|
@JvmOverloads
|
|
public final Path get(@NotNull String str, boolean z) {
|
|
str.getClass();
|
|
return okio.internal.Path.commonToPath(str, z);
|
|
}
|
|
|
|
@JvmStatic
|
|
@JvmName(name = MetricsConstants.Method.CACHE_GET)
|
|
@NotNull
|
|
@JvmOverloads
|
|
public final Path get(@NotNull File file) {
|
|
file.getClass();
|
|
return get$default(this, file, false, 1, (Object) null);
|
|
}
|
|
|
|
@JvmStatic
|
|
@JvmName(name = MetricsConstants.Method.CACHE_GET)
|
|
@NotNull
|
|
@JvmOverloads
|
|
public final Path get(@NotNull java.nio.file.Path path, boolean z) {
|
|
path.getClass();
|
|
return get(path.toString(), z);
|
|
}
|
|
}
|
|
|
|
@JvmStatic
|
|
@JvmName(name = MetricsConstants.Method.CACHE_GET)
|
|
@NotNull
|
|
@JvmOverloads
|
|
public static final Path get(@NotNull File file, boolean z) {
|
|
return INSTANCE.get(file, z);
|
|
}
|
|
|
|
@JvmStatic
|
|
@JvmName(name = MetricsConstants.Method.CACHE_GET)
|
|
@NotNull
|
|
@JvmOverloads
|
|
public static final Path get(@NotNull String str) {
|
|
return INSTANCE.get(str);
|
|
}
|
|
|
|
@JvmStatic
|
|
@JvmName(name = MetricsConstants.Method.CACHE_GET)
|
|
@NotNull
|
|
@JvmOverloads
|
|
public static final Path get(@NotNull String str, boolean z) {
|
|
return INSTANCE.get(str, z);
|
|
}
|
|
|
|
@JvmStatic
|
|
@JvmName(name = MetricsConstants.Method.CACHE_GET)
|
|
@NotNull
|
|
@JvmOverloads
|
|
public static final Path get(@NotNull java.nio.file.Path path) {
|
|
return INSTANCE.get(path);
|
|
}
|
|
|
|
public static /* synthetic */ Path resolve$default(Path path, ByteString byteString, boolean z, int i, Object obj) {
|
|
if ((i & 2) != 0) {
|
|
z = false;
|
|
}
|
|
return path.resolve(byteString, z);
|
|
}
|
|
|
|
@JvmStatic
|
|
@JvmName(name = MetricsConstants.Method.CACHE_GET)
|
|
@NotNull
|
|
@JvmOverloads
|
|
public static final Path get(@NotNull java.nio.file.Path path, boolean z) {
|
|
return INSTANCE.get(path, z);
|
|
}
|
|
|
|
public static /* synthetic */ Path resolve$default(Path path, Path path2, boolean z, int i, Object obj) {
|
|
if ((i & 2) != 0) {
|
|
z = false;
|
|
}
|
|
return path.resolve(path2, z);
|
|
}
|
|
|
|
@NotNull
|
|
public final Path resolve(@NotNull Path child, boolean normalize) {
|
|
child.getClass();
|
|
return okio.internal.Path.commonResolve(this, child, normalize);
|
|
}
|
|
|
|
@JvmName(name = MetricsUtil.MetricsId.RESOLVE)
|
|
@NotNull
|
|
public final Path resolve(@NotNull Path child) {
|
|
child.getClass();
|
|
return okio.internal.Path.commonResolve(this, child, false);
|
|
}
|
|
|
|
@JvmName(name = MetricsUtil.MetricsId.RESOLVE)
|
|
@NotNull
|
|
public final Path resolve(@NotNull ByteString child) {
|
|
child.getClass();
|
|
return okio.internal.Path.commonResolve(this, okio.internal.Path.toPath(new Buffer().write(child), false), false);
|
|
}
|
|
|
|
@NotNull
|
|
public final Path resolve(@NotNull String child, boolean normalize) {
|
|
child.getClass();
|
|
return okio.internal.Path.commonResolve(this, okio.internal.Path.toPath(new Buffer().writeUtf8(child), false), normalize);
|
|
}
|
|
|
|
@NotNull
|
|
public final Path resolve(@NotNull ByteString child, boolean normalize) {
|
|
child.getClass();
|
|
return okio.internal.Path.commonResolve(this, okio.internal.Path.toPath(new Buffer().write(child), false), normalize);
|
|
}
|
|
}
|