Code example for ArrayList

Methods: add

    private CumulativeTimeBucket ctb; 
    private boolean inited = false; 
    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>, 
        // We are the class that implements the service 
        m.put(IPktInProcessingTimeService.class, this); 
        return m; 
Contextual code suggestions in your IDE  Get Codota for Java