Code example for ArrayList

Methods: add

    // IFloodlightModule 
    public Collection<Class<? extends IFloodlightService>> getModuleServices() { 
        Collection<Class<? extends IFloodlightService>> l =  
                new ArrayList<Class<? extends IFloodlightService>>(); 
        return l; 
    public Map<Class<? extends IFloodlightService>, IFloodlightService> 
            getServiceImpls() { 
        Map<Class<? extends IFloodlightService>, 
            IFloodlightService> m =  
                new HashMap<Class<? extends IFloodlightService>, 
        m.put(IThreadPoolService.class, this); 
        // We are the class that implements the service 
        return m; 
Connect your IDE to all the code out there  Get Codota for Java