what-the-bank/sources/com/airbnb/lottie/parser/IntegerParser.java

19 lines
603 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.airbnb.lottie.parser;
import com.airbnb.lottie.parser.moshi.JsonReader;
import java.io.IOException;
/* loaded from: classes.dex */
public class IntegerParser implements ValueParser<Integer> {
public static final IntegerParser INSTANCE = new IntegerParser();
private IntegerParser() {
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // com.airbnb.lottie.parser.ValueParser
public Integer parse(JsonReader jsonReader, float f) throws IOException {
return Integer.valueOf(Math.round(JsonUtils.valueFromObject(jsonReader) * f));
}
}