73 lines
2.0 KiB
Java
73 lines
2.0 KiB
Java
package c.i.e.r.d;
|
|
|
|
import java.util.Formatter;
|
|
/* compiled from: DetectionResultColumn */
|
|
public class g {
|
|
public final c a;
|
|
public final d[] b;
|
|
|
|
public g(c cVar) {
|
|
this.a = new c(cVar);
|
|
this.b = new d[((cVar.i - cVar.h) + 1)];
|
|
}
|
|
|
|
public final d a(int i) {
|
|
d dVar;
|
|
d dVar2;
|
|
d dVar3 = this.b[i - this.a.h];
|
|
if (dVar3 != null) {
|
|
return dVar3;
|
|
}
|
|
for (int i2 = 1; i2 < 5; i2++) {
|
|
int i3 = i - this.a.h;
|
|
int i4 = i3 - i2;
|
|
if (i4 >= 0 && (dVar2 = this.b[i4]) != null) {
|
|
return dVar2;
|
|
}
|
|
int i5 = i3 + i2;
|
|
d[] dVarArr = this.b;
|
|
if (i5 < dVarArr.length && (dVar = dVarArr[i5]) != null) {
|
|
return dVar;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
public final int b(int i) {
|
|
return i - this.a.h;
|
|
}
|
|
|
|
/* JADX WARNING: Code restructure failed: missing block: B:15:0x0052, code lost:
|
|
r2 = move-exception;
|
|
*/
|
|
/* JADX WARNING: Code restructure failed: missing block: B:17:?, code lost:
|
|
r0.close();
|
|
*/
|
|
/* JADX WARNING: Code restructure failed: missing block: B:18:0x0057, code lost:
|
|
r0 = move-exception;
|
|
*/
|
|
/* JADX WARNING: Code restructure failed: missing block: B:19:0x0058, code lost:
|
|
r1.addSuppressed(r0);
|
|
*/
|
|
/* JADX WARNING: Code restructure failed: missing block: B:20:0x005b, code lost:
|
|
throw r2;
|
|
*/
|
|
public String toString() {
|
|
Formatter formatter = new Formatter();
|
|
d[] dVarArr = this.b;
|
|
int i = 0;
|
|
for (d dVar : dVarArr) {
|
|
if (dVar == null) {
|
|
formatter.format("%3d: | %n", Integer.valueOf(i));
|
|
i++;
|
|
} else {
|
|
formatter.format("%3d: %3d|%3d%n", Integer.valueOf(i), Integer.valueOf(dVar.e), Integer.valueOf(dVar.d));
|
|
i++;
|
|
}
|
|
}
|
|
String formatter2 = formatter.toString();
|
|
formatter.close();
|
|
return formatter2;
|
|
}
|
|
}
|