All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.radioreference.api.RadioReferenceApiFactory Maven / Gradle / Ivy

The newest version!
package com.radioreference.api;

import java.util.HashMap;
import java.util.Map;

public class RadioReferenceApiFactory {

    private static Map apis = new HashMap();
    private static Map debugApis = new HashMap();

    public static RadioReferenceApi getApi(long key) {
        if (!apis.containsKey(key)) {
            apis.put(key, new RadioReferenceApiImpl(key, false));
        }
        return apis.get(key);
    }

    public static RadioReferenceApi getDebugApi(long key) {
        if (!debugApis.containsKey(key)) {
            debugApis.put(key, new RadioReferenceApiImpl(key, true));
        }
        return debugApis.get(key);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy