person.java
来自「spring的源代码」· Java 代码 · 共 96 行
JAVA
96 行
package org.springframework.samples.petclinic;
/**
* Simple JavaBean domain object representing an person.
*
* @author Ken Krebs
*/
public class Person extends Entity {
/** Holds value of property firstName. */
private String firstName;
/** Holds value of property lastName. */
private String lastName;
/** Holds value of property address. */
private String address;
/** Holds value of property city. */
private String city;
/** Holds value of property telephone. */
private String telephone;
/** Getter for property firstName.
* @return Value of property firstName.
*/
public String getFirstName() {
return this.firstName;
}
/** Setter for property firstName.
* @param firstName New value of property firstName.
*/
public void setFirstName(String firstName) {
this.firstName = firstName;
}
/** Getter for property lastName.
* @return Value of property lastName.
*/
public String getLastName() {
return this.lastName;
}
/** Setter for property lastName.
* @param lastName New value of property lastName.
*/
public void setLastName(String lastName) {
this.lastName = lastName;
}
/** Getter for property address.
* @return Value of property address.
*/
public String getAddress() {
return this.address;
}
/** Setter for property address.
* @param address New value of property address.
*/
public void setAddress(String address) {
this.address = address;
}
/** Getter for property city.
* @return Value of property city.
*/
public String getCity() {
return this.city;
}
/** Setter for property city.
* @param city New value of property city.
*/
public void setCity(String city) {
this.city = city;
}
/** Getter for property telephone.
* @return Value of property telephone.
*/
public String getTelephone() {
return this.telephone;
}
/** Setter for property telephone.
* @param telephone New value of property telephone.
*/
public void setTelephone(String telephone) {
this.telephone = telephone;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?