Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.yammer.metrics.jdbi.strategies;
 
 
 import java.util.List;
 
public abstract class DelegatingStatementNameStrategy implements StatementNameStrategy {
    protected DelegatingStatementNameStrategy(StatementNameStrategy... strategies) {
        registerStrategies(strategies);
    }
    protected void registerStrategies(StatementNameStrategy... strategies) {
        this..addAll(Arrays.asList(strategies));
    }
    @Override
    public MetricName getStatementName(StatementContext statementContext) {
        if ( != null) {
            for (StatementNameStrategy strategy : ) {
                final MetricName statementName = strategy.getStatementName(statementContext);
                if (statementName != null) {
                    return statementName;
                }
            }
        }
        return .;
    }
New to GrepCode? Check out our FAQ X