
com.radioreference.api.RadioReferenceApiFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of radio-reference-api Show documentation
Show all versions of radio-reference-api Show documentation
Java library to use the RadioReference.com API
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