Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package net.java.ao.schema.info;
 
A EntityInfoResolver which caches the computed EntityInfo for any type it is given
    private final Cache<Class<? extends RawEntity<?>>, EntityInfocache;
    {
        super(delegate);
         = CacheBuilder.newBuilder().build(new CacheLoader<Class<? extends RawEntity<?>>, EntityInfo>() {
            @SuppressWarnings("unchecked")
            @Override
            public EntityInfo load(Class typethrows Exception {
                return CachingEntityInfoResolver.super.resolve(type);
            }
        });
    }
    @SuppressWarnings("unchecked")
    @Override
    public <T extends RawEntity<K>, K> EntityInfo<T, K> resolve(Class<T> type)
    {
        return .getUnchecked(type);
    }
New to GrepCode? Check out our FAQ X