Code example for Map

Methods: size, values

0
        return activeNetwork;
    } 
 
    @Implementation 
    public NetworkInfo[] getAllNetworkInfo() {
        return networkTypeToNetworkInfo.values().toArray(new NetworkInfo[networkTypeToNetworkInfo.size()]);
    } 
 
    @Implementation 
    public NetworkInfo getNetworkInfo(int networkType) {
        return networkTypeToNetworkInfo.get(networkType);
    } 
 
    @Implementation 
    public boolean getBackgroundDataSetting() { 
        return backgroundDataSetting;
    } 
 
    @Implementation 
    public void setNetworkPreference(int preference) {
        networkPreference = preference;