Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package pl.matisoft.soy.data;
 
Created with IntelliJ IDEA. User: mati Date: 20/06/2013 Time: 22:34 An implementation that always returns an Optional.absent(), implements Null Object Pattern
public class EmptyToSoyDataConverter implements ToSoyDataConverter {
    @Override
    public Optional<SoyMapDatatoSoyMap(final Object modelthrows Exception {
        return Optional.of(new SoyMapData());
    }
New to GrepCode? Check out our FAQ X