io.ipinfo.api.context.Context Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ipinfo-api Show documentation
Show all versions of ipinfo-api Show documentation
Java wrapper for the IPinfo API
package io.ipinfo.api.context;
import java.util.Map;
public class Context {
private final Map countryMap;
public Context(Map countryMap) {
this.countryMap = countryMap;
}
public String getCountryName(String countryCode) {
return countryMap.get(countryCode);
}
}