Code example for LinkedHashMap

Methods: containsKeygetput

0
    public void startTimerFor(MojoExecutionName name) {
        getMojoTimer(name).start();
    } 
 
    private MojoTimer getMojoTimer(MojoExecutionName name) {
        if(!dataStore.containsKey(name.getName()))
            dataStore.put(name.getName(), new MojoTimer(name.getName()));
        return dataStore.get(name.getName());
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE