com.github.zhengframework.cache.simple.SimpleCacheEntry Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zheng-cache Show documentation
Show all versions of zheng-cache Show documentation
zheng framework module: cache support
package com.github.zhengframework.cache.simple;
import javax.cache.Cache;
public class SimpleCacheEntry implements Cache.Entry {
private final K k;
private final V v;
public SimpleCacheEntry(K k, V v) {
this.k = k;
this.v = v;
}
@Override
public K getKey() {
return k;
}
@Override
public V getValue() {
return v;
}
@Override
public T unwrap(Class clazz) {
return null;
}
}