📄 cacheinterceptortestbean.java
字号:
package com.ejsun.entapps.test.core;
import java.util.Map;
/**
* @author Quake Wang
* @since 2004-5-18
* @version $Revision: 1.1 $
*
**/
public class CacheInterceptorTestBean {
private Map foos;
private int invokeTimes = 0;
public String loadFooById(int i) {
invokeTimes++;
return (String) foos.get(new Integer(i));
}
public void updateFoo(int i, String foo) {
foos.put(new Integer(i), foo);
}
public int getInvokeTimes() {
return invokeTimes;
}
public void setFoos(Map map) {
foos = map;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -