📄 user.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -