1 | public class Transaction {↵ | | 1 | public class Y {↵
|
|
2 | private Long id;↵ | | 2 | private Long id;↵
|
3 | private String description;↵ | | 3 | private String ↵
|
4 | private MonetoryAmount value;↵ | | |
|
5 | ↵ | | 4 | x;↵
|
| | | 5 | private X theX;↵
|
| | | 6 | /**↵
|
| | | 7 | * Returns the id.↵
|
| | | 8 | * @return Long↵
|
| | | 9 | */↵
|
6 | public String getDescription() {↵ | | 10 | public Long getId() {↵
|
7 | return description;↵ | | 11 | return ↵
|
8 | }↵ | | |
|
9 | ↵ | | |
|
10 | public void setDescription(String description) {↵ | | |
|
11 | this.description = description;↵ | | |
|
12 | }↵ | | |
|
13 | ↵ | | |
|
14 | public Long getId() {↵ | | |
|
15 | return id;↵ | | |
|
16 | }↵ | | |
|
17 | ↵ | | 12 | id;↵
|
| | | 13 | }↵
|
|
| | | 14 | /**↵
|
| | | 15 | * Returns the x.↵
|
| | | 16 | * @return String↵
|
| | | 17 | */↵
|
| | | 18 | public String getX() {↵
|
| | | 19 | return x;↵
|
| | | 20 | }↵
|
|
| | | 21 | /**↵
|
| | | 22 | * Sets the id.↵
|
| | | 23 | * @param id The id to set↵
|
| | | 24 | */↵
|
| | | 25 | public void setId(Long id) {↵
|
| | | 26 | this.id = id;↵
|
| | | 27 | }↵
|
|
| | | 28 | /**↵
|
| | | 29 | * Sets the x.↵
|
| | | 30 | * @param x The x to set↵
|
| | | 31 | */↵
|
18 | public void setId(Long id) {↵ | | 32 | public void setX(String x) {↵
|
19 | this.id = id;↵ | | 33 | this.x = x;↵
|
20 | }↵ | | 34 | }↵
|
21 | ↵ | | |
|
22 | public MonetoryAmount getValue↵ | | |
|
| | | 35 | /**↵
|
| | | 36 | * @return↵
|
| | | 37 | */↵
|
23 | () {↵ | | 38 | public X getTheX() {↵
|
24 | return value;↵ | | 39 | return ↵
|
25 | }↵ | | |
|
26 | ↵ | | |
|
27 | public void setValue(MonetoryAmount value) {↵ | | |
|
28 | this.value = value↵ | | 40 | theX;↵
|
| | | 41 | }↵
|
|
| | | 42 | /**↵
|
| | | 43 | * @param x↵
|
| | | 44 | */↵
|
| | | 45 | public void setTheX(X x) {↵
|
29 | ;↵ | | 46 | theX = x;↵
|
30 | | | 47 |
|