Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.java.ao.schema;
 
 import java.util.List;
 
 import static com.google.common.base.Preconditions.*;
 import static net.java.ao.Common.convertSimpleClassName;
 
 {
    private List<Transformtransforms;
    TransformsTableNameConverter(List<TransformtransformsCanonicalClassNameTableNameConverter delegateTableNameConverter)
    {
        this. = checkNotNull(transforms);
        this. = checkNotNull(delegateTableNameConverter);
    }
    @Override
    protected final String getName(String entityClassCanonicalName)
    {
        return .getName(transform(entityClassCanonicalName));
    }
    private String transform(String entityClassCanonicalName)
    {
        for (Transform transform : )
        {
            if (transform.accept(entityClassCanonicalName))
            {
                return transform.apply(entityClassCanonicalName);
            }
        }
        return entityClassCanonicalName;
    }
    static interface Transform
    {
        boolean accept(String entityClassCanonicalName);
        String apply(String entityClassCanonicalName);
    }
    {
        @Override
        protected String getName(String entityClassCanonicalName)
        {
            return convertSimpleClassName(entityClassCanonicalName);
        }
    }
New to GrepCode? Check out our FAQ X