62,616
社区成员
发帖
与我相关
我的任务
分享
package org.apache.ibatis.cache;
import java.util.concurrent.locks.ReadWriteLock;
public abstract interface Cache
{
public abstract String getId();
//还有很多方法
}
public class SynchronizedCache
implements Cache
{
private Cache delegate;
public SynchronizedCache(Cache delegate)
{
this.delegate = delegate;
}
public String getId() {
return this.delegate.getId();
}
//还实现了其他方法
}