package com.kwad.sdk.core.config.item; import android.content.SharedPreferences; import android.text.TextUtils; import com.kwad.sdk.core.a.c; import org.json.JSONObject; public abstract class b<T> { private T aUq; private T aUr; private String mKey; public b(String str, T t) { this(str, t, t); } private b(String str, T t, T t2) { this.mKey = str; this.aUr = t; this.aUq = t2; com.kwad.sdk.core.config.b.a(this); } public static String cK(String str) { return !TextUtils.isEmpty(str) ? c.de(str) : str; } public static String cL(String str) { return (TextUtils.isEmpty(str) || !c.dg(str)) ? str : c.df(str); } public final T Lw() { return this.aUq; } public abstract void a(SharedPreferences.Editor editor); public abstract void a(SharedPreferences sharedPreferences); public abstract void e(JSONObject jSONObject); public final String getKey() { return this.mKey; } public T getValue() { return this.aUr; } public final void setValue(T t) { this.aUr = t; } }