1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.yaml.snakeyaml.recursive;
17
18 import java.util.HashMap;
19 import java.util.Map;
20
21 public class Human2 extends AbstractHuman {
22
23 private Human2 father;
24 private Human2 mother;
25 private Human2 partner;
26 private Human2 bankAccountOwner;
27 protected Map<Human2, String> children;
28
29 public Human2() {
30 children = new HashMap<Human2, String>();
31 }
32
33 public Human2 getFather() {
34 return father;
35 }
36
37 public void setFather(Human2 father) {
38 this.father = father;
39 }
40
41 public Human2 getMother() {
42 return mother;
43 }
44
45 public void setMother(Human2 mother) {
46 this.mother = mother;
47 }
48
49 public Human2 getPartner() {
50 return partner;
51 }
52
53 public void setPartner(Human2 partner) {
54 this.partner = partner;
55 }
56
57 public Human2 getBankAccountOwner() {
58 return bankAccountOwner;
59 }
60
61 public void setBankAccountOwner(Human2 bankAccountOwner) {
62 this.bankAccountOwner = bankAccountOwner;
63 }
64
65 public Map<Human2, String> getChildren() {
66 return children;
67 }
68
69 public void setChildren(Map<Human2, String> children) {
70 this.children = children;
71 }
72
73 }