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

net.ipip.ipdb.BaseStationInfo Maven / Gradle / Ivy

There is a newer version: 1.1.3
Show newest version
package net.ipip.ipdb;

public class BaseStationInfo {

    private String[] data;

    public BaseStationInfo(String[] data) {
        this.data = data;
    }

    public String getCountryName() {
        return this.data[0];
    }

    public String getRegionName() {
        return this.data[1];
    }

    public String getCityName() {
        return this.data[2];
    }

    public String getOwnerDomain() {
        return this.data[3];
    }

    public String getIspDomain() {
        return this.data[4];
    }

    public String getBaseStation() {
        return this.data[5];
    }

    public String toString() {
        StringBuffer sb = new StringBuffer();

        sb.append("country_name:");
        sb.append(this.getCountryName());
        sb.append("\n");
        sb.append("region_name:");
        sb.append(this.getRegionName());
        sb.append("\n");
        sb.append("city_name:");
        sb.append(this.getCityName());
        sb.append("\n");
        sb.append("owner_domain:");
        sb.append(this.getOwnerDomain());
        sb.append("\n");
        sb.append("isp_domain:");
        sb.append(this.getIspDomain());
        sb.append("\n");
        sb.append("base_station:");
        sb.append(this.getBaseStation());

        return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy