mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
39 lines
980 B
Java
39 lines
980 B
Java
package com.google.zxing.client.result;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public abstract class ParsedResult {
|
|
private final ParsedResultType type;
|
|
|
|
public abstract String getDisplayResult();
|
|
|
|
public final ParsedResultType getType() {
|
|
return this.type;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
public ParsedResult(ParsedResultType parsedResultType) {
|
|
this.type = parsedResultType;
|
|
}
|
|
|
|
public final String toString() {
|
|
return getDisplayResult();
|
|
}
|
|
|
|
public static void maybeAppend(String str, StringBuilder sb) {
|
|
if (str == null || str.isEmpty()) {
|
|
return;
|
|
}
|
|
if (sb.length() > 0) {
|
|
sb.append('\n');
|
|
}
|
|
sb.append(str);
|
|
}
|
|
|
|
public static void maybeAppend(String[] strArr, StringBuilder sb) {
|
|
if (strArr != null) {
|
|
for (String str : strArr) {
|
|
maybeAppend(str, sb);
|
|
}
|
|
}
|
|
}
|
|
}
|