user.java

来自「动态代理实例源代码」· Java 代码 · 共 32 行

JAVA
32
字号
package com.lakeviewtech;

/**
 * Simple User interface which exposes username and password properties.
 */
public interface User {

    /**
     * Gets the username of the User.
     */
    String getUsername();

    /**
     * Sets the username of the User.
     * @throws ValidationException indicates that validation of the proposed
     * username variable failed.  Contains information about what went wrong.
     */
    void setUsername(String username) throws ValidationException;

    /**
     * Gets the password of the User.
     */
    String getPassword();

    /**
     * Sets the password of the User.
     * @throws ValidationException indicates that validation of the proposed
     * password variable failed.  Contains information about what went wrong.
     */
    void setPassword(String password) throws ValidationException;
}

⌨️ 快捷键说明

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