📄 pri_inc.java
字号:
/**
* Decorator Pattern
*/
package cn.edu.nju.software.ruse;
/**
* @author spring
*
*/
public class PRI_Inc extends PRIDecorator {
/* (non-Javadoc)
* @see main.PRIDecorator#getDescription()
*/
Operator operand;
public PRI_Inc(Operator operand) {
this.operand = operand;
operand.PRI += 1;
}
public String getDescription() {
return operand.getDesription();
}
/* (non-Javadoc)
* @see main.Operand#getPRI()
*/
public int getPRI() {
return operand.getPRI();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -