Code example for SortedMap

Methods: putputAll

0
     * @return An instance of an Info object 
     */ 
    public Info<? extends Map<String,?>> invoke(String action)
    { 
        // Record the action (STARTUP/SHUTDOWN) 
        infoMap.put("action",action);
 
        // Record the current time stamp 
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSSZ");
        infoMap.put("time", sdf.format(Calendar.getInstance().getTime()));
 
        // Add the system specific properties  
        infoMap.putAll(SystemInfo.getInfo());
         
        // Add the application specific properties 
        infoMap.putAll(AppInfo.getInfo());
 
        return new Info<SortedMap<String, String>>(infoMap);
    } 
 
} 
Connect your IDE to all the code out there  Get Codota for Java