Code example for ImmutableMap

Methods: get

0
    public RiversTypesRegistry(ImmutableMap<String, Class<? extends Module>> riverTypes) { 
        this.riverTypes = riverTypes; 
    } 
 
    public Class<? extends Module> type(String type) { 
        return riverTypes.get(type); 
    } 
}