73 lines
2.6 KiB
Java
73 lines
2.6 KiB
Java
|
package o;
|
||
|
|
||
|
import com.kofax.kmc.ken.engines.service.ImageService;
|
||
|
import java.text.DecimalFormat;
|
||
|
import java.text.ParseException;
|
||
|
import java.text.SimpleDateFormat;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class qtD extends C0743NnU<C16774rCj> {
|
||
|
public qtD(C16774rCj c16774rCj) {
|
||
|
super(c16774rCj);
|
||
|
}
|
||
|
|
||
|
@Override // o.C0743NnU
|
||
|
public final String d(int i) {
|
||
|
switch (i) {
|
||
|
case 0:
|
||
|
return String.format("%d", ((C16774rCj) this.a).j(i));
|
||
|
case 2:
|
||
|
return ((C16774rCj) this.a).o(i);
|
||
|
case 12:
|
||
|
return ((C16774rCj) this.a).o(i);
|
||
|
case 14:
|
||
|
int[] i2 = ((C16774rCj) this.a).i(i);
|
||
|
if (i2 == null) {
|
||
|
return null;
|
||
|
}
|
||
|
return String.format("%d/%d", Integer.valueOf(i2[0]), Integer.valueOf(i2[1]));
|
||
|
case 18:
|
||
|
return String.format("%d", ((C16774rCj) this.a).j(i));
|
||
|
case 22:
|
||
|
String o2 = ((C16774rCj) this.a).o(i);
|
||
|
try {
|
||
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(ImageService.EXIF_TIME_FORMAT);
|
||
|
return simpleDateFormat.format(simpleDateFormat.parse(o2));
|
||
|
} catch (ParseException unused) {
|
||
|
return null;
|
||
|
}
|
||
|
case 36:
|
||
|
return a(i, "New", "Waxing Crescent", "First Quarter", "Waxing Gibbous", "Full", "Waning Gibbous", "Last Quarter", "Waning Crescent");
|
||
|
case 38:
|
||
|
case 40:
|
||
|
return String.format("%d", ((C16774rCj) this.a).j(i));
|
||
|
case 42:
|
||
|
Gux gux = (Gux) BrP.b(new Object[]{(C16774rCj) this.a, Integer.valueOf(i)}, 1465014264, -1465014261, i);
|
||
|
if (gux == null) {
|
||
|
return null;
|
||
|
}
|
||
|
return gux.toString();
|
||
|
case 72:
|
||
|
case 74:
|
||
|
case 76:
|
||
|
case 78:
|
||
|
return String.format("%d", ((C16774rCj) this.a).j(i));
|
||
|
case 80:
|
||
|
return a(i, "Off", "On");
|
||
|
case 82:
|
||
|
return String.format("%d", ((C16774rCj) this.a).j(i));
|
||
|
case 84:
|
||
|
Double c = ((C16774rCj) this.a).c(i);
|
||
|
DecimalFormat decimalFormat = new DecimalFormat("0.000");
|
||
|
if (c != null) {
|
||
|
return decimalFormat.format(c);
|
||
|
}
|
||
|
return null;
|
||
|
case 86:
|
||
|
return ((C16774rCj) this.a).o(i);
|
||
|
default:
|
||
|
return super.d(i);
|
||
|
}
|
||
|
}
|
||
|
}
|