gu.sql2java.guava.DeepCacheBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sql2java-base Show documentation
Show all versions of sql2java-base Show documentation
sql2java common class package
The newest version!
package gu.sql2java.guava;
import com.google.common.base.Equivalence;
import com.google.common.base.Throwables;
import com.google.common.cache.CacheBuilder;
import static gu.sql2java.guava.DeepEquivalence.DEEP_EQUIVALENCE;
import java.lang.reflect.Method;
public class DeepCacheBuilder {
/**
* 反射调用
* {@link CacheBuilder#keyEquivalence(Equivalence)}和{@link CacheBuilder#valueEquivalence(Equivalence)}方法
*
* @param builder
* @param methodName
* @param equivalence
* @return always builder
*/
@SuppressWarnings("unchecked")
private static CacheBuilder
© 2015 - 2025 Weber Informatics LLC | Privacy Policy