1 | public class E {↵ | | 1 | public class Account {
↵
|
2 | private Long id;↵ | | 2 | private String accountId;
↵
|
3 | private float amount;↵ | | 3 | private ↵
|
4 | private A reverse;↵ | | |
|
5 | private Set as;↵ | | 4 | Customer customer;↵
|
| | | 5 | private Person person;↵
|
| | | 6 | private char type;
↵
|
6 | /**↵ | | 7 | /**
↵
|
7 | * Returns the amount.↵ | | 8 | * @return Returns the ↵
|
8 | * @return float↵ | | 9 | user.
↵
|
9 | */↵ | | 10 | */
↵
|
10 | public float getAmount() {↵ | | 11 | public Customer getCustomer() {
↵
|
11 | return amount;↵ | | 12 | return customer;
↵
|
12 | }↵ | | 13 | }↵
|
13 | ↵ | | 14 |
↵
|
14 | /**↵ | | 15 | /**
↵
|
15 | * Returns the id.↵ | | 16 | * ↵
|
16 | * @return long↵ | | 17 | @param user The user to set.↵
|
| | | 18 | */↵
|
| | | 19 | public void setCustomer(Customer user) {↵
|
| | | 20 | this.customer = user;↵
|
| | | 21 | }↵
|
| | | 22 | /**↵
|
| | | 23 | * @return Returns the accountId.
↵
|
17 | */↵ | | 24 | */
↵
|
18 | public Long getId() {↵ | | 25 | public String getAccountId() {
↵
|
19 | return id;↵ | | 26 | return accountId;
↵
|
20 | }↵ | | 27 | }↵
|
21 | ↵ | | 28 |
↵
|
22 | /**↵ | | 29 | /**↵
|
23 | * Sets the amount.↵ | | 30 |
↵
|
24 | * @param amount The amount to set↵ | | 31 | * @param accountId The accountId to set.
↵
|
25 | */↵ | | 32 | */
↵
|
26 | public void setAmount(float amount) {↵ | | 33 | public void setAccountId(String accountId) {
↵
|
27 | this.amount = amount;↵ | | 34 | this.accountId = accountId;
↵
|
28 | }↵ | | 35 | }↵
|
29 | ↵ | | 36 |
↵
|
30 | /**↵ | | 37 | /**
↵
|
31 | * Sets the id.↵ | | 38 | * ↵
|
32 | * @param id The id to set↵ | | 39 | @return Returns the type.
↵
|
33 | */↵ | | 40 | */
↵
|
34 | public void setId(Long id) {↵ | | 41 | public char getType() {
↵
|
35 | this.id = id;↵ | | 42 | return type;
↵
|
36 | }↵ | | 43 | }
↵
|
37 | ↵ | | 44 | ↵
|
38 | public A getReverse() {↵ | | |
|
39 | return reverse;↵ | | |
|
40 | }↵ | | |
|
| | | 45 | /**↵
|
| | | 46 | * @param type The type to set.↵
|
| | | 47 | */
↵
|
41 | public void setReverse(A a) {↵ | | 48 | public void setType(char type) {
↵
|
42 | reverse = a;↵ | | 49 | ↵
|
43 | }↵ | | |
|
|
44 | /**↵ | | |
|
45 | * @return Returns the as.↵ | | |
|
46 | */↵ | | 50 | this.type = type;↵
|
| | | 51 | }
↵
|
47 | public Set getAs() {↵ | | 52 | public Person getPerson() {
↵
|
48 | return as;↵ | | 53 | return person;
↵
|
49 | }↵ | | 54 | }↵
|
| | | 55 |
↵
|
50 | /**↵ | | 56 | ↵
|
51 | * @param as The as to set.↵ | | |
|
52 | */↵ | | |
|
53 | public void setAs(Set as↵ | | |
|
54 | ) {↵ | | 57 | public void setPerson(Person person) {
↵
|
55 | this.as = as | | 58 | this.person = person
|