demodescription.java

来自「在软件开发中用来绘制各种图表的源码」· Java 代码 · 共 58 行

JAVA
58
字号
/* --------------------
 * 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 + =
减小字号Ctrl + -
显示快捷键?