1 | public class BagOwner {↵ | | 1 | public class Address {↵
|
2 | private String name;↵ | | 2 | private Long id;↵
|
3 | private BagOwner parent;↵ | | 3 | private ↵
|
4 | private List children = new ArrayLis↵ | | 4 | String info;↵
|
5 | t();↵ | | 5 | private Set suites = new HashSet();↵
|
|
6 | public BagOwner() {↵ | | 6 | public Address() {↵
|
7 | }↵ | | 7 | }↵
|
|
8 | public BagOwner(String name) {↵ | | 8 | public Address(String info) {↵
|
9 | this.name = name;↵ | | 9 | this.info = info;↵
|
10 | }↵ | | 10 | }↵
|
|
11 | public String getName() {↵ | | 11 | public Long getId() {↵
|
12 | return name;↵ | | 12 | return id;↵
|
13 | }↵ | | 13 | }↵
|
|
14 | public void setName(String name) {↵ | | 14 | public void setId(Long id) {↵
|
15 | this.name = name;↵ | | 15 | this.id = id;↵
|
16 | }↵ | | 16 | }↵
|
|
17 | public BagOwner getParent() {↵ | | 17 | public String getInfo() {↵
|
18 | return parent;↵ | | 18 | return info;↵
|
19 | }↵ | | 19 | }↵
|
|
20 | public void setParent(BagOwner parent) {↵ | | 20 | public void set↵
|
21 | this.parent = parent↵ | | 21 | Info(String info) {↵
|
22 | ;↵ | | 22 | this.info = info;↵
|
23 | }↵ | | 23 | }↵
|
|
24 | public List getChildren() {↵ | | 24 | public Set getSuites() {↵
|
25 | return children;↵ | | 25 | return suites;↵
|
26 | }↵ | | 26 | }↵
|
|
27 | public void setChildren(List children) {↵ | | 27 | public void setSuites(Set suites) {↵
|
28 | this.children = children;↵ | | 28 | this.suites = suites;↵
|
29 | | | 29 |
|