package com.kwad.sdk.core.config.item; import android.content.SharedPreferences; import org.json.JSONObject; public final class m extends a<Long> { public m(String str) { this(str, 0L); } public m(String str, Long l) { super(str, l); } /* renamed from: LI */ public final Long getValue() { return (Long) super.getValue(); } @Override // com.kwad.sdk.core.config.item.b public final void a(SharedPreferences.Editor editor) { editor.putLong(getKey(), getValue().longValue()); } @Override // com.kwad.sdk.core.config.item.b public final void a(SharedPreferences sharedPreferences) { setValue(Long.valueOf(sharedPreferences.getLong(getKey(), ((Long) Lw()).longValue()))); } @Override // com.kwad.sdk.core.config.item.b public final void e(JSONObject jSONObject) { setValue(jSONObject != null ? Long.valueOf(jSONObject.optLong(getKey(), ((Long) Lw()).longValue())) : Lw()); } }