public static < K , V > Cache2kConfiguration < K , V > of ( CacheType < K > keyType , CacheType < V > valueType ) { Cache2kConfiguration < K , V > c = new Cache2kConfiguration < K , V > ( ) ; c . setKeyType ( keyType ) ; c . setValueType ( valueType ) ; return c ; }
Construct a config instance setting the type parameters and returning a proper generic type .