Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package uk.co.optimisticpanda.atom;
 
An interface that is used to process entries.
 
public interface EntryVisitor {
    
    void visit(Entry entry);

    
An EntryVisitor that does nothing apart from log each visited entry
    public static EntryVisitor noopVisitor = new EntryVisitor(){
        Logger log = LoggerFactory.getLogger(EntryVisitor.class);
        public void visit(Entry entry) {
            .debug("Visiting entry : {}, doing nothing."entry);
        }
    };
    
New to GrepCode? Check out our FAQ X