package com.xbb.java.stream;
public class Person {
private int id;
private String name;
private int age;
private String couny;
public Person(int id, String name, int age) {
this.id = id;
this.name = name;
this.age = age;
}
public Person(int id, String name, int age,String couny) {
this.id = id;
this.name = name;
this.age = age;
this.couny = couny;
}
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public int getAge() {
return age;
}
public void setAge(int age) {
this.age = age;
}
public String getCouny() {
return couny;
}
public void setCouny(String couny) {
this.couny = couny;
}
@Override
public String toString() {
return this.id + "--" + this.getName() + "--" +this.getAge();
}
}
Java8 Stream Step1-2-3 Bean
最新推荐文章于 2022-05-30 17:45:29 发布