package com.bytedance.sdk.openadsdk.core.settings;

import com.bytedance.sdk.component.utils.wey;
import java.util.HashSet;
import java.util.Set;
import org.json.JSONArray;
import org.json.JSONObject;

/* JADX INFO: loaded from: classes2.dex */
public interface jnr {
    public static final ro<JSONObject> fm = new ro<JSONObject>() { // from class: com.bytedance.sdk.openadsdk.core.settings.jnr.1
        @Override // com.bytedance.sdk.openadsdk.core.settings.jnr.ro
        /* JADX INFO: renamed from: fm, reason: merged with bridge method [inline-methods] */
        public JSONObject ro(String str) {
            try {
                return new JSONObject(str);
            } catch (Exception e10) {
                wey.fm("ISettingsDataRepository", "", e10);
                return null;
            }
        }
    };
    public static final ro<Set<String>> ro = new ro<Set<String>>() { // from class: com.bytedance.sdk.openadsdk.core.settings.jnr.2
        @Override // com.bytedance.sdk.openadsdk.core.settings.jnr.ro
        /* JADX INFO: renamed from: fm, reason: merged with bridge method [inline-methods] */
        public Set<String> ro(String str) {
            HashSet hashSet = new HashSet();
            try {
                JSONArray jSONArray = new JSONArray(str);
                int length = jSONArray.length();
                for (int i10 = 0; i10 < length; i10++) {
                    hashSet.add(jSONArray.getString(i10));
                }
            } catch (Exception e10) {
                wey.fm("ISettingsDataRepository", "", e10);
            }
            return hashSet;
        }
    };

    public interface fm {
        fm fm(String str);

        fm fm(String str, float f10);

        fm fm(String str, int i10);

        fm fm(String str, long j10);

        fm fm(String str, String str2);

        fm fm(String str, boolean z10);

        void fm();
    }

    public interface ro<T> {
        T ro(String str);
    }

    void fm(JSONObject jSONObject);
}
