Code example for Provider

Methods: getName

0
    } 
 
    /** 
     * Inserts a provider at a specified position 
     *  
     * @param provider 
     * @param position 
     * @return 
     */ 
    public static int insertProviderAt(Provider provider, int position) {
        int size = providers.size();
        if ((position < 1) || (position > size)) {
            position = size + 1;
        } 
        providers.add(position - 1, provider);
        providersNames.put(provider.getName(), provider);
        setNeedRefresh(); 
        return position;
    } 
 
    /**