Ai
3 Star 5 Fork 7

汪少棠/apache-study

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Person.java 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
汪少棠 提交于 2021-09-19 19:43 +08:00 . 项目备份
package com.wmx.other;
import java.io.Serializable;
import java.util.Date;
/**
* @author wangMaoXiong
* @version 1.0
* @date 2020/6/20 10:54
*/
public class Person implements Serializable {
private Integer id;
private String name;
private Date birthday;
private Float salary;
public Person() {
}
public Person(Integer id, String name, Date birthday, Float salary) {
this.id = id;
this.name = name;
this.birthday = birthday;
this.salary = salary;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Date getBirthday() {
return birthday;
}
public void setBirthday(Date birthday) {
this.birthday = birthday;
}
public Float getSalary() {
return salary;
}
public void setSalary(Float salary) {
this.salary = salary;
}
@Override
public String toString() {
return "Person{" +
"id=" + id +
", name='" + name + '\'' +
", birthday=" + birthday +
", salary=" + salary +
'}';
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/wangmx1993/apache-study.git
git@gitee.com:wangmx1993/apache-study.git
wangmx1993
apache-study
apache-study
master

搜索帮助