Rabbit-R1/original r1/java/sources/kotlin/text/HexFormat.java
2024-05-21 17:08:36 -04:00

476 lines
32 KiB
Java

package kotlin.text;
import io.sentry.protocol.OperatingSystem;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* compiled from: HexFormat.kt */
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u000e\n\u0002\b\u0005\b\u0007\u0018\u0000 \u00132\u00020\u0001:\u0004\u0011\u0012\u0013\u0014B\u001f\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bJ\b\u0010\u000f\u001a\u00020\u0010H\u0016R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nR\u0011\u0010\u0006\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000e¨\u0006\u0015"}, d2 = {"Lkotlin/text/HexFormat;", "", "upperCase", "", "bytes", "Lkotlin/text/HexFormat$BytesHexFormat;", "number", "Lkotlin/text/HexFormat$NumberHexFormat;", "(ZLkotlin/text/HexFormat$BytesHexFormat;Lkotlin/text/HexFormat$NumberHexFormat;)V", "getBytes", "()Lkotlin/text/HexFormat$BytesHexFormat;", "getNumber", "()Lkotlin/text/HexFormat$NumberHexFormat;", "getUpperCase", "()Z", "toString", "", "Builder", "BytesHexFormat", "Companion", "NumberHexFormat", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class HexFormat {
/* renamed from: Companion, reason: from kotlin metadata */
public static final Companion INSTANCE = new Companion(null);
private static final HexFormat Default = new HexFormat(false, BytesHexFormat.INSTANCE.getDefault$kotlin_stdlib(), NumberHexFormat.INSTANCE.getDefault$kotlin_stdlib());
private static final HexFormat UpperCase = new HexFormat(true, BytesHexFormat.INSTANCE.getDefault$kotlin_stdlib(), NumberHexFormat.INSTANCE.getDefault$kotlin_stdlib());
private final BytesHexFormat bytes;
private final NumberHexFormat number;
private final boolean upperCase;
public final BytesHexFormat getBytes() {
return this.bytes;
}
public final NumberHexFormat getNumber() {
return this.number;
}
public final boolean getUpperCase() {
return this.upperCase;
}
public HexFormat(boolean z, BytesHexFormat bytes, NumberHexFormat number) {
Intrinsics.checkNotNullParameter(bytes, "bytes");
Intrinsics.checkNotNullParameter(number, "number");
this.upperCase = z;
this.bytes = bytes;
this.number = number;
}
public String toString() {
StringBuilder sb = new StringBuilder();
StringBuilder append = sb.append("HexFormat(");
Intrinsics.checkNotNullExpressionValue(append, "append(...)");
Intrinsics.checkNotNullExpressionValue(append.append('\n'), "append(...)");
StringBuilder append2 = sb.append(" upperCase = ").append(this.upperCase);
Intrinsics.checkNotNullExpressionValue(append2, "append(...)");
StringBuilder append3 = append2.append(",");
Intrinsics.checkNotNullExpressionValue(append3, "append(...)");
Intrinsics.checkNotNullExpressionValue(append3.append('\n'), "append(...)");
StringBuilder append4 = sb.append(" bytes = BytesHexFormat(");
Intrinsics.checkNotNullExpressionValue(append4, "append(...)");
Intrinsics.checkNotNullExpressionValue(append4.append('\n'), "append(...)");
Intrinsics.checkNotNullExpressionValue(this.bytes.appendOptionsTo$kotlin_stdlib(sb, " ").append('\n'), "append(...)");
StringBuilder append5 = sb.append(" ),");
Intrinsics.checkNotNullExpressionValue(append5, "append(...)");
Intrinsics.checkNotNullExpressionValue(append5.append('\n'), "append(...)");
StringBuilder append6 = sb.append(" number = NumberHexFormat(");
Intrinsics.checkNotNullExpressionValue(append6, "append(...)");
Intrinsics.checkNotNullExpressionValue(append6.append('\n'), "append(...)");
Intrinsics.checkNotNullExpressionValue(this.number.appendOptionsTo$kotlin_stdlib(sb, " ").append('\n'), "append(...)");
StringBuilder append7 = sb.append(" )");
Intrinsics.checkNotNullExpressionValue(append7, "append(...)");
Intrinsics.checkNotNullExpressionValue(append7.append('\n'), "append(...)");
sb.append(")");
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return sb2;
}
/* compiled from: HexFormat.kt */
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\r\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u0000 \u001b2\u00020\u0001:\u0002\u001a\u001bB7\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\b\u001a\u00020\u0006\u0012\u0006\u0010\t\u001a\u00020\u0006¢\u0006\u0002\u0010\nJ%\u0010\u0013\u001a\u00060\u0014j\u0002`\u00152\n\u0010\u0016\u001a\u00060\u0014j\u0002`\u00152\u0006\u0010\u0017\u001a\u00020\u0006H\u0000¢\u0006\u0002\b\u0018J\b\u0010\u0019\u001a\u00020\u0006H\u0016R\u0011\u0010\b\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\u0007\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\fR\u0011\u0010\t\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\fR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u0010R\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0012\u0010\\u0006\u001c"}, d2 = {"Lkotlin/text/HexFormat$BytesHexFormat;", "", "bytesPerLine", "", "bytesPerGroup", "groupSeparator", "", "byteSeparator", "bytePrefix", "byteSuffix", "(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "getBytePrefix", "()Ljava/lang/String;", "getByteSeparator", "getByteSuffix", "getBytesPerGroup", "()I", "getBytesPerLine", "getGroupSeparator", "appendOptionsTo", "Ljava/lang/StringBuilder;", "Lkotlin/text/StringBuilder;", "sb", "indent", "appendOptionsTo$kotlin_stdlib", "toString", "Builder", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class BytesHexFormat {
/* renamed from: Companion, reason: from kotlin metadata */
public static final Companion INSTANCE = new Companion(null);
private static final BytesHexFormat Default = new BytesHexFormat(Integer.MAX_VALUE, Integer.MAX_VALUE, " ", "", "", "");
private final String bytePrefix;
private final String byteSeparator;
private final String byteSuffix;
private final int bytesPerGroup;
private final int bytesPerLine;
private final String groupSeparator;
public final String getBytePrefix() {
return this.bytePrefix;
}
public final String getByteSeparator() {
return this.byteSeparator;
}
public final String getByteSuffix() {
return this.byteSuffix;
}
public final int getBytesPerGroup() {
return this.bytesPerGroup;
}
public final int getBytesPerLine() {
return this.bytesPerLine;
}
public final String getGroupSeparator() {
return this.groupSeparator;
}
public BytesHexFormat(int i, int i2, String groupSeparator, String byteSeparator, String bytePrefix, String byteSuffix) {
Intrinsics.checkNotNullParameter(groupSeparator, "groupSeparator");
Intrinsics.checkNotNullParameter(byteSeparator, "byteSeparator");
Intrinsics.checkNotNullParameter(bytePrefix, "bytePrefix");
Intrinsics.checkNotNullParameter(byteSuffix, "byteSuffix");
this.bytesPerLine = i;
this.bytesPerGroup = i2;
this.groupSeparator = groupSeparator;
this.byteSeparator = byteSeparator;
this.bytePrefix = bytePrefix;
this.byteSuffix = byteSuffix;
}
public String toString() {
StringBuilder sb = new StringBuilder();
StringBuilder append = sb.append("BytesHexFormat(");
Intrinsics.checkNotNullExpressionValue(append, "append(...)");
Intrinsics.checkNotNullExpressionValue(append.append('\n'), "append(...)");
Intrinsics.checkNotNullExpressionValue(appendOptionsTo$kotlin_stdlib(sb, " ").append('\n'), "append(...)");
sb.append(")");
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return sb2;
}
public final StringBuilder appendOptionsTo$kotlin_stdlib(StringBuilder sb, String indent) {
Intrinsics.checkNotNullParameter(sb, "sb");
Intrinsics.checkNotNullParameter(indent, "indent");
StringBuilder append = sb.append(indent).append("bytesPerLine = ").append(this.bytesPerLine);
Intrinsics.checkNotNullExpressionValue(append, "append(...)");
StringBuilder append2 = append.append(",");
Intrinsics.checkNotNullExpressionValue(append2, "append(...)");
Intrinsics.checkNotNullExpressionValue(append2.append('\n'), "append(...)");
StringBuilder append3 = sb.append(indent).append("bytesPerGroup = ").append(this.bytesPerGroup);
Intrinsics.checkNotNullExpressionValue(append3, "append(...)");
StringBuilder append4 = append3.append(",");
Intrinsics.checkNotNullExpressionValue(append4, "append(...)");
Intrinsics.checkNotNullExpressionValue(append4.append('\n'), "append(...)");
StringBuilder append5 = sb.append(indent).append("groupSeparator = \"").append(this.groupSeparator);
Intrinsics.checkNotNullExpressionValue(append5, "append(...)");
StringBuilder append6 = append5.append("\",");
Intrinsics.checkNotNullExpressionValue(append6, "append(...)");
Intrinsics.checkNotNullExpressionValue(append6.append('\n'), "append(...)");
StringBuilder append7 = sb.append(indent).append("byteSeparator = \"").append(this.byteSeparator);
Intrinsics.checkNotNullExpressionValue(append7, "append(...)");
StringBuilder append8 = append7.append("\",");
Intrinsics.checkNotNullExpressionValue(append8, "append(...)");
Intrinsics.checkNotNullExpressionValue(append8.append('\n'), "append(...)");
StringBuilder append9 = sb.append(indent).append("bytePrefix = \"").append(this.bytePrefix);
Intrinsics.checkNotNullExpressionValue(append9, "append(...)");
StringBuilder append10 = append9.append("\",");
Intrinsics.checkNotNullExpressionValue(append10, "append(...)");
Intrinsics.checkNotNullExpressionValue(append10.append('\n'), "append(...)");
sb.append(indent).append("byteSuffix = \"").append(this.byteSuffix).append("\"");
return sb;
}
/* compiled from: HexFormat.kt */
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u000b\n\u0002\u0010\b\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0000¢\u0006\u0002\u0010\u0002J\r\u0010\u001c\u001a\u00020\u001dH\u0000¢\u0006\u0002\b\u001eR$\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\tR$\u0010\n\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000b\u0010\u0007\"\u0004\b\f\u0010\tR$\u0010\r\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000e\u0010\u0007\"\u0004\b\u000f\u0010\tR$\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u0003\u001a\u00020\u0010@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R$\u0010\u0016\u001a\u00020\u00102\u0006\u0010\u0003\u001a\u00020\u0010@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0017\u0010\u0013\"\u0004\b\u0018\u0010\u0015R\u001a\u0010\u0019\u001a\u00020\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u001a\u0010\u0007\"\u0004\b\u001b\u0010\\u0006\u001f"}, d2 = {"Lkotlin/text/HexFormat$BytesHexFormat$Builder;", "", "()V", "value", "", "bytePrefix", "getBytePrefix", "()Ljava/lang/String;", "setBytePrefix", "(Ljava/lang/String;)V", "byteSeparator", "getByteSeparator", "setByteSeparator", "byteSuffix", "getByteSuffix", "setByteSuffix", "", "bytesPerGroup", "getBytesPerGroup", "()I", "setBytesPerGroup", "(I)V", "bytesPerLine", "getBytesPerLine", "setBytesPerLine", "groupSeparator", "getGroupSeparator", "setGroupSeparator", OperatingSystem.JsonKeys.BUILD, "Lkotlin/text/HexFormat$BytesHexFormat;", "build$kotlin_stdlib", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Builder {
private int bytesPerLine = BytesHexFormat.INSTANCE.getDefault$kotlin_stdlib().getBytesPerLine();
private int bytesPerGroup = BytesHexFormat.INSTANCE.getDefault$kotlin_stdlib().getBytesPerGroup();
private String groupSeparator = BytesHexFormat.INSTANCE.getDefault$kotlin_stdlib().getGroupSeparator();
private String byteSeparator = BytesHexFormat.INSTANCE.getDefault$kotlin_stdlib().getByteSeparator();
private String bytePrefix = BytesHexFormat.INSTANCE.getDefault$kotlin_stdlib().getBytePrefix();
private String byteSuffix = BytesHexFormat.INSTANCE.getDefault$kotlin_stdlib().getByteSuffix();
public final String getBytePrefix() {
return this.bytePrefix;
}
public final String getByteSeparator() {
return this.byteSeparator;
}
public final String getByteSuffix() {
return this.byteSuffix;
}
public final int getBytesPerGroup() {
return this.bytesPerGroup;
}
public final int getBytesPerLine() {
return this.bytesPerLine;
}
public final String getGroupSeparator() {
return this.groupSeparator;
}
public final void setGroupSeparator(String str) {
Intrinsics.checkNotNullParameter(str, "<set-?>");
this.groupSeparator = str;
}
public final void setBytesPerLine(int i) {
if (i <= 0) {
throw new IllegalArgumentException("Non-positive values are prohibited for bytesPerLine, but was " + i);
}
this.bytesPerLine = i;
}
public final void setBytesPerGroup(int i) {
if (i <= 0) {
throw new IllegalArgumentException("Non-positive values are prohibited for bytesPerGroup, but was " + i);
}
this.bytesPerGroup = i;
}
public final void setByteSeparator(String value) {
Intrinsics.checkNotNullParameter(value, "value");
String str = value;
if (StringsKt.contains$default((CharSequence) str, '\n', false, 2, (Object) null) || StringsKt.contains$default((CharSequence) str, '\r', false, 2, (Object) null)) {
throw new IllegalArgumentException("LF and CR characters are prohibited in byteSeparator, but was " + value);
}
this.byteSeparator = value;
}
public final void setBytePrefix(String value) {
Intrinsics.checkNotNullParameter(value, "value");
String str = value;
if (StringsKt.contains$default((CharSequence) str, '\n', false, 2, (Object) null) || StringsKt.contains$default((CharSequence) str, '\r', false, 2, (Object) null)) {
throw new IllegalArgumentException("LF and CR characters are prohibited in bytePrefix, but was " + value);
}
this.bytePrefix = value;
}
public final void setByteSuffix(String value) {
Intrinsics.checkNotNullParameter(value, "value");
String str = value;
if (StringsKt.contains$default((CharSequence) str, '\n', false, 2, (Object) null) || StringsKt.contains$default((CharSequence) str, '\r', false, 2, (Object) null)) {
throw new IllegalArgumentException("LF and CR characters are prohibited in byteSuffix, but was " + value);
}
this.byteSuffix = value;
}
public final BytesHexFormat build$kotlin_stdlib() {
return new BytesHexFormat(this.bytesPerLine, this.bytesPerGroup, this.groupSeparator, this.byteSeparator, this.bytePrefix, this.byteSuffix);
}
}
/* compiled from: HexFormat.kt */
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0080\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0014\u0010\u0003\u001a\u00020\u0004X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/text/HexFormat$BytesHexFormat$Companion;", "", "()V", "Default", "Lkotlin/text/HexFormat$BytesHexFormat;", "getDefault$kotlin_stdlib", "()Lkotlin/text/HexFormat$BytesHexFormat;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final BytesHexFormat getDefault$kotlin_stdlib() {
return BytesHexFormat.Default;
}
}
}
/* compiled from: HexFormat.kt */
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u0000 \u00152\u00020\u0001:\u0002\u0014\u0015B\u001f\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J%\u0010\r\u001a\u00060\u000ej\u0002`\u000f2\n\u0010\u0010\u001a\u00060\u000ej\u0002`\u000f2\u0006\u0010\u0011\u001a\u00020\u0003H\u0000¢\u0006\u0002\b\u0012J\b\u0010\u0013\u001a\u00020\u0003H\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\\u0006\u0016"}, d2 = {"Lkotlin/text/HexFormat$NumberHexFormat;", "", "prefix", "", "suffix", "removeLeadingZeros", "", "(Ljava/lang/String;Ljava/lang/String;Z)V", "getPrefix", "()Ljava/lang/String;", "getRemoveLeadingZeros", "()Z", "getSuffix", "appendOptionsTo", "Ljava/lang/StringBuilder;", "Lkotlin/text/StringBuilder;", "sb", "indent", "appendOptionsTo$kotlin_stdlib", "toString", "Builder", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class NumberHexFormat {
/* renamed from: Companion, reason: from kotlin metadata */
public static final Companion INSTANCE = new Companion(null);
private static final NumberHexFormat Default = new NumberHexFormat("", "", false);
private final String prefix;
private final boolean removeLeadingZeros;
private final String suffix;
public final String getPrefix() {
return this.prefix;
}
public final boolean getRemoveLeadingZeros() {
return this.removeLeadingZeros;
}
public final String getSuffix() {
return this.suffix;
}
public NumberHexFormat(String prefix, String suffix, boolean z) {
Intrinsics.checkNotNullParameter(prefix, "prefix");
Intrinsics.checkNotNullParameter(suffix, "suffix");
this.prefix = prefix;
this.suffix = suffix;
this.removeLeadingZeros = z;
}
public String toString() {
StringBuilder sb = new StringBuilder();
StringBuilder append = sb.append("NumberHexFormat(");
Intrinsics.checkNotNullExpressionValue(append, "append(...)");
Intrinsics.checkNotNullExpressionValue(append.append('\n'), "append(...)");
Intrinsics.checkNotNullExpressionValue(appendOptionsTo$kotlin_stdlib(sb, " ").append('\n'), "append(...)");
sb.append(")");
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return sb2;
}
public final StringBuilder appendOptionsTo$kotlin_stdlib(StringBuilder sb, String indent) {
Intrinsics.checkNotNullParameter(sb, "sb");
Intrinsics.checkNotNullParameter(indent, "indent");
StringBuilder append = sb.append(indent).append("prefix = \"").append(this.prefix);
Intrinsics.checkNotNullExpressionValue(append, "append(...)");
StringBuilder append2 = append.append("\",");
Intrinsics.checkNotNullExpressionValue(append2, "append(...)");
Intrinsics.checkNotNullExpressionValue(append2.append('\n'), "append(...)");
StringBuilder append3 = sb.append(indent).append("suffix = \"").append(this.suffix);
Intrinsics.checkNotNullExpressionValue(append3, "append(...)");
StringBuilder append4 = append3.append("\",");
Intrinsics.checkNotNullExpressionValue(append4, "append(...)");
Intrinsics.checkNotNullExpressionValue(append4.append('\n'), "append(...)");
sb.append(indent).append("removeLeadingZeros = ").append(this.removeLeadingZeros);
return sb;
}
/* compiled from: HexFormat.kt */
@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\u0010\u000b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0000¢\u0006\u0002\u0010\u0002J\r\u0010\u0013\u001a\u00020\u0014H\u0000¢\u0006\u0002\b\u0015R$\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\tR\u001a\u0010\n\u001a\u00020\u000bX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000fR$\u0010\u0010\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0011\u0010\u0007\"\u0004\b\u0012\u0010\\u0006\u0016"}, d2 = {"Lkotlin/text/HexFormat$NumberHexFormat$Builder;", "", "()V", "value", "", "prefix", "getPrefix", "()Ljava/lang/String;", "setPrefix", "(Ljava/lang/String;)V", "removeLeadingZeros", "", "getRemoveLeadingZeros", "()Z", "setRemoveLeadingZeros", "(Z)V", "suffix", "getSuffix", "setSuffix", OperatingSystem.JsonKeys.BUILD, "Lkotlin/text/HexFormat$NumberHexFormat;", "build$kotlin_stdlib", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Builder {
private String prefix = NumberHexFormat.INSTANCE.getDefault$kotlin_stdlib().getPrefix();
private String suffix = NumberHexFormat.INSTANCE.getDefault$kotlin_stdlib().getSuffix();
private boolean removeLeadingZeros = NumberHexFormat.INSTANCE.getDefault$kotlin_stdlib().getRemoveLeadingZeros();
public final String getPrefix() {
return this.prefix;
}
public final boolean getRemoveLeadingZeros() {
return this.removeLeadingZeros;
}
public final String getSuffix() {
return this.suffix;
}
public final void setRemoveLeadingZeros(boolean z) {
this.removeLeadingZeros = z;
}
public final void setPrefix(String value) {
Intrinsics.checkNotNullParameter(value, "value");
String str = value;
if (StringsKt.contains$default((CharSequence) str, '\n', false, 2, (Object) null) || StringsKt.contains$default((CharSequence) str, '\r', false, 2, (Object) null)) {
throw new IllegalArgumentException("LF and CR characters are prohibited in prefix, but was " + value);
}
this.prefix = value;
}
public final void setSuffix(String value) {
Intrinsics.checkNotNullParameter(value, "value");
String str = value;
if (StringsKt.contains$default((CharSequence) str, '\n', false, 2, (Object) null) || StringsKt.contains$default((CharSequence) str, '\r', false, 2, (Object) null)) {
throw new IllegalArgumentException("LF and CR characters are prohibited in suffix, but was " + value);
}
this.suffix = value;
}
public final NumberHexFormat build$kotlin_stdlib() {
return new NumberHexFormat(this.prefix, this.suffix, this.removeLeadingZeros);
}
}
/* compiled from: HexFormat.kt */
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0080\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0014\u0010\u0003\u001a\u00020\u0004X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/text/HexFormat$NumberHexFormat$Companion;", "", "()V", "Default", "Lkotlin/text/HexFormat$NumberHexFormat;", "getDefault$kotlin_stdlib", "()Lkotlin/text/HexFormat$NumberHexFormat;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final NumberHexFormat getDefault$kotlin_stdlib() {
return NumberHexFormat.Default;
}
}
}
/* compiled from: HexFormat.kt */
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0007\b\u0001¢\u0006\u0002\u0010\u0002J\b\u0010\u0013\u001a\u00020\u0014H\u0001J%\u0010\u0007\u001a\u00020\u00152\u0017\u0010\u0016\u001a\u0013\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00150\u0017¢\u0006\u0002\b\u0018H\u0087\\u0001\u0000J%\u0010\n\u001a\u00020\u00152\u0017\u0010\u0016\u001a\u0013\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00150\u0017¢\u0006\u0002\b\u0018H\u0087\\u0001\u0000R\u0010\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u000e¢\u0006\u0002\n\u0000R\u0011\u0010\u0007\u001a\u00020\u00048F¢\u0006\u0006\u001a\u0004\b\b\u0010\tR\u0011\u0010\n\u001a\u00020\u00068F¢\u0006\u0006\u001a\u0004\b\u000b\u0010\fR\u001a\u0010\r\u001a\u00020\u000eX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000f\u0010\u0010\"\u0004\b\u0011\u0010\u0012\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u0019"}, d2 = {"Lkotlin/text/HexFormat$Builder;", "", "()V", "_bytes", "Lkotlin/text/HexFormat$BytesHexFormat$Builder;", "_number", "Lkotlin/text/HexFormat$NumberHexFormat$Builder;", "bytes", "getBytes", "()Lkotlin/text/HexFormat$BytesHexFormat$Builder;", "number", "getNumber", "()Lkotlin/text/HexFormat$NumberHexFormat$Builder;", "upperCase", "", "getUpperCase", "()Z", "setUpperCase", "(Z)V", OperatingSystem.JsonKeys.BUILD, "Lkotlin/text/HexFormat;", "", "builderAction", "Lkotlin/Function1;", "Lkotlin/ExtensionFunctionType;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Builder {
private BytesHexFormat.Builder _bytes;
private NumberHexFormat.Builder _number;
private boolean upperCase = HexFormat.INSTANCE.getDefault().getUpperCase();
public final boolean getUpperCase() {
return this.upperCase;
}
public final void setUpperCase(boolean z) {
this.upperCase = z;
}
public final BytesHexFormat.Builder getBytes() {
if (this._bytes == null) {
this._bytes = new BytesHexFormat.Builder();
}
BytesHexFormat.Builder builder = this._bytes;
Intrinsics.checkNotNull(builder);
return builder;
}
public final NumberHexFormat.Builder getNumber() {
if (this._number == null) {
this._number = new NumberHexFormat.Builder();
}
NumberHexFormat.Builder builder = this._number;
Intrinsics.checkNotNull(builder);
return builder;
}
private final void bytes(Function1<? super BytesHexFormat.Builder, Unit> builderAction) {
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
builderAction.invoke(getBytes());
}
private final void number(Function1<? super NumberHexFormat.Builder, Unit> builderAction) {
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
builderAction.invoke(getNumber());
}
public final HexFormat build() {
BytesHexFormat default$kotlin_stdlib;
NumberHexFormat default$kotlin_stdlib2;
boolean z = this.upperCase;
BytesHexFormat.Builder builder = this._bytes;
if (builder == null || (default$kotlin_stdlib = builder.build$kotlin_stdlib()) == null) {
default$kotlin_stdlib = BytesHexFormat.INSTANCE.getDefault$kotlin_stdlib();
}
NumberHexFormat.Builder builder2 = this._number;
if (builder2 == null || (default$kotlin_stdlib2 = builder2.build$kotlin_stdlib()) == null) {
default$kotlin_stdlib2 = NumberHexFormat.INSTANCE.getDefault$kotlin_stdlib();
}
return new HexFormat(z, default$kotlin_stdlib, default$kotlin_stdlib2);
}
}
/* compiled from: HexFormat.kt */
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006R\u0011\u0010\u0007\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u0006¨\u0006\t"}, d2 = {"Lkotlin/text/HexFormat$Companion;", "", "()V", "Default", "Lkotlin/text/HexFormat;", "getDefault", "()Lkotlin/text/HexFormat;", "UpperCase", "getUpperCase", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final HexFormat getDefault() {
return HexFormat.Default;
}
public final HexFormat getUpperCase() {
return HexFormat.UpperCase;
}
}
}