📄 demodescription.java
字号:
/* --------------------
* DemoDescription.java
* --------------------
* (C) Copyright 2004, by Object Refinery Limited.
*
*/
package demo;
/**
* A description of a demo application (used by the SuperDemo.java application).
*/
public class DemoDescription {
private String className;
private String description;
/**
* Creates a new description.
*
* @param demoClassName the class name.
* @param demoDescription the description.
*/
public DemoDescription(String demoClassName, String demoDescription) {
this.className = demoClassName;
this.description = demoDescription;
}
/**
* Returns the class name.
*
* @return The class name.
*/
public String getClassName() {
return this.className;
}
/**
* Returns the description.
*
* @return The description.
*/
public String getDescription() {
return this.description;
}
/**
* Returns the class description.
*
* @return The class description.
*/
public String toString() {
return this.description;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -