e001. the quintessential bean.txt

来自「这里面包含了一百多个JAVA源文件」· 文本 代码 · 共 19 行

TXT
19
字号
This example bean has a single property called property. If the property were not a boolean, it would not have an isX() method. Also, if the property were read-only, it would not have a setX() method. 
    import java.io.Serializable;
    
    public class BasicBean implements Serializable {
        boolean property;
        public BasicBean() {
        }
        public boolean getProperty() {
            return property;
        }
        public boolean isProperty() {
            return property;
        }
        public void setProperty(boolean newValue) {
            property = newValue;
        }
    }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?