Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package pl.matisoft.soy.global.compile;
 
 
 import java.util.Map;
Created with IntelliJ IDEA. User: mati Date: 21/06/2013 Time: 23:06 A default implementation, which delegates to a map
    private Map data;
    @Override
    public Optional<SoyMapDataresolveData() {
        if ( == null || .isEmpty()) {
            return Optional.absent();
        }
        return Optional.of(new SoyMapData());
    }
    public void setData(final Map data) {
        this. = data;
    }
    public void setProperties(final Properties properties) {
         = new HashMap();
        for (final String propertyName : properties.stringPropertyNames()) {
            .put(propertyNameproperties.getProperty(propertyName));
        }
    }
New to GrepCode? Check out our FAQ X