Code example for Provider

Methods: getName

0
providers.add(position - 1, provider);
        providersNames.put(provider.getName(), provider);
        setNeedRefresh(); 
        return position;
    } 
 
    /** 
     * Removes the provider 
     *  
     * @param providerNumber 
     */ 
    public static void removeProvider(int providerNumber) {
        Provider p = providers.remove(providerNumber - 1);
        providersNames.remove(p.getName());
        setNeedRefresh(); 
    } 
 
    /** 
     *  
     * Adds information about provider services into HashMap.