Code example for ImmutableMap

Methods: get

0
    public boolean hasProperty(String name) {
        return properties.containsKey(name);
    } 
 
    public String getProperty(String name) {
        return properties.get(name);
    } 
 
    public Map<String, String> getProperties() {
        return properties;
    } 
 
    public String getProperty(String name, String defaultValue) {
        if (hasProperty(name)) {
            return properties.get(name);
        } else { 
            return defaultValue;
        } 
    }