1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.yaml.snakeyaml.recursive.generics;
17
18 import java.util.Date;
19
20 public abstract class AbstractHumanGen<T, K extends AbstractHumanGen<T, ?>> {
21 private String name;
22 private Date birthday;
23 private String birthPlace;
24 private K father;
25 private K mother;
26 private K partner;
27 private K bankAccountOwner;
28 protected T children;
29
30 public String getName() {
31 return name;
32 }
33
34 public void setName(String name) {
35 this.name = name;
36 }
37
38 public Date getBirthday() {
39 return birthday;
40 }
41
42 public void setBirthday(Date birthday) {
43 this.birthday = birthday;
44 }
45
46 public String getBirthPlace() {
47 return birthPlace;
48 }
49
50 public K getFather() {
51 return father;
52 }
53
54 public void setFather(K father) {
55 this.father = father;
56 }
57
58 public K getMother() {
59 return mother;
60 }
61
62 public void setMother(K mother) {
63 this.mother = mother;
64 }
65
66 public void setBirthPlace(String birthPlace) {
67 this.birthPlace = birthPlace;
68 }
69
70 public T getChildren() {
71 return children;
72 }
73
74 public void setChildren(T children) {
75 this.children = children;
76 }
77
78 public K getPartner() {
79 return partner;
80 }
81
82 public void setPartner(K partner) {
83 this.partner = partner;
84 }
85
86 public K getBankAccountOwner() {
87 return bankAccountOwner;
88 }
89
90 public void setBankAccountOwner(K bankAccountOwner) {
91 this.bankAccountOwner = bankAccountOwner;
92 }
93
94 }