1 | public class SubMulti extends Multi {↵ | | 1 | public class Account {
↵
|
2 | private float amount;↵ | | 2 | private ↵
|
3 | private SubMulti parent;↵ | | |
|
4 | private List childre↵ | | 3 | String accountId;↵
|
| | | 4 | private Customer customer;↵
|
5 | n;↵ | | 5 | private Person person;
↵
|
6 | private List moreChildren;↵ | | 6 | private char type;
↵
|
7 | /**↵ | | 7 | /**
↵
|
8 | * Returns the amount.↵ | | 8 | * @return Returns the ↵
|
9 | * @return float↵ | | 9 | user.
↵
|
10 | */↵ | | 10 | */
↵
|
11 | public float getAmount() {↵ | | 11 | public Customer getCustomer() {
↵
|
12 | return amount;↵ | | 12 | return customer;
↵
|
13 | }↵ | | 13 | }↵
|
14 | ↵ | | 14 |
↵
|
15 | /**↵ | | 15 | /**↵
|
16 | * Sets the amount.↵ | | 16 |
↵
|
17 | * @param amount The amount to set↵ | | 17 | * @param user The user to set.
↵
|
18 | */↵ | | 18 | */
↵
|
19 | public void setAmount(float amount) {↵ | | 19 | public void setCustomer(Customer user) {
↵
|
20 | this.amount = amount;↵ | | 20 | this.customer = user;
↵
|
21 | }↵ | | 21 | }↵
|
22 | ↵ | | 22 |
↵
|
23 | /**↵ | | 23 | /**
↵
|
24 | * Returns the childen.↵ | | 24 | * @return Returns the ↵
|
25 | * @return List↵ | | 25 | accountId.
↵
|
26 | */↵ | | 26 | */
↵
|
27 | public List getChildren() {↵ | | 27 | public String getAccountId() {
↵
|
28 | return children;↵ | | 28 | return accountId;
↵
|
29 | }↵ | | 29 | }↵
|
30 | ↵ | | 30 |
↵
|
31 | /**↵ | | 31 | /**
↵
|
32 | * Returns the parent.↵ | | 32 | * ↵
|
33 | * @return SubMulti↵ | | 33 | @param accountId The accountId to set.
↵
|
34 | */↵ | | 34 | */
↵
|
35 | public SubMulti getParent() {↵ | | 35 | public void setAccountId(String accountId) {
↵
|
36 | return parent;↵ | | 36 | this.accountId = accountId;
↵
|
37 | }↵ | | 37 | }↵
|
38 | ↵ | | 38 |
↵
|
39 | /**↵ | | 39 | /**
↵
|
40 | * Sets the childen.↵ | | 40 | * ↵
|
41 | * @param childen The childen to set↵ | | 41 | @return Returns the type.
↵
|
42 | */↵ | | 42 | */
↵
|
43 | public void setChildren(List children) {↵ | | 43 | public char getType() {
↵
|
44 | this.children = children;↵ | | 44 | return type;
↵
|
45 | }↵ | | 45 | }↵
|
46 | ↵ | | 46 |
↵
|
47 | /**↵ | | 47 | /**↵
|
48 | * Sets the parent.↵ | | 48 |
↵
|
49 | * @param parent The parent to set↵ | | 49 | * @param type The type to set.
↵
|
50 | */↵ | | 50 | */
↵
|
51 | public void setParent(SubMulti parent) {↵ | | 51 | public void setType(char type) {
↵
|
52 | this.parent = parent;↵ | | 52 | this.↵
|
53 | }↵ | | |
|
54 | ↵ | | |
|
55 | /**↵ | | |
|
56 | * Returns the moreChildren.↵ | | |
|
57 | * @return List↵ | | |
|
58 | */↵ | | 53 | type = type;↵
|
| | | 54 | }
↵
|
59 | public List getMoreChildren() {↵ | | 55 | public Person getPerson() {
↵
|
60 | return moreChildren;↵ | | 56 | return person;
↵
|
61 | }↵ | | 57 | }↵
|
|
62 | /**↵ | | |
|
63 | * Sets the moreChildren.↵ | | |
|
64 | * @param moreChildren The moreChildren to set↵ | | |
|
65 | */↵ | | |
|
66 | public void setMoreChildren(List moreChildre↵ | | |
|
|
67 | n) {↵ | | 58 | public void setPerson(Person person) {
↵
|
68 | this.moreChildren = moreChildren | | 59 | this.person = person
|