package com.kwad.sdk.core.config.item; import android.content.SharedPreferences; import org.json.JSONObject; public final class f extends a<Double> { public f(String str, Double d) { super(str, d); } /* renamed from: Ly */ public final Double getValue() { return (Double) super.getValue(); } @Override // com.kwad.sdk.core.config.item.b public final void a(SharedPreferences.Editor editor) { editor.putString(getKey(), getValue().toString()); } @Override // com.kwad.sdk.core.config.item.b public final void a(SharedPreferences sharedPreferences) { setValue(Double.valueOf(Double.parseDouble(sharedPreferences.getString(getKey(), ((Double) Lw()).toString())))); } @Override // com.kwad.sdk.core.config.item.b public final void e(JSONObject jSONObject) { setValue(jSONObject != null ? Double.valueOf(jSONObject.optDouble(getKey(), ((Double) Lw()).doubleValue())) : Lw()); } }