1 | public class IdbagOwner {
↵ | | 1 | public class User {↵
|
2 | private String name;
↵ | | 2 | private String name;↵
|
3 | private List children = new ArrayList();↵ | | 3 | private List groups = new ArrayList();↵
|
|
4 | public IdbagOwn↵ | | |
|
| | | 4 | ↵
|
5 | er() {
↵ | | 5 | User() {}↵
|
6 | }↵ | | 6 | ↵
|
7 |
↵ | | |
|
8 | public IdbagOwner(String name) {
↵ | | 7 | public User(String name) {↵
|
9 | this.name = name;
↵ | | 8 | this.name = name;↵
|
10 | }↵ | | 9 | }↵
|
11 |
↵ | | |
|
|
12 | public String getName() {
↵ | | 10 | public String getName() {↵
|
13 | return name;
↵ | | 11 | return name;↵
|
14 | }↵ | | 12 | }↵
|
|
15 | public ↵ | | |
|
| | | 13 | ↵
|
|
16 | void setName(String name) {
↵ | | 14 | void setName(String name) {↵
|
17 | this.name = name;
↵ | | 15 | this.name = name;↵
|
18 | }↵ | | 16 | }↵
|
19 |
↵ | | |
|
|
20 | public List getChildren() {
↵ | | 17 | public List getGroups() {↵
|
21 | return children;↵ | | 18 | return ↵
|
22 | }↵ | | |
|
|
23 | public void setChildren(List children↵ | | 19 | groups;↵
|
| | | 20 | }↵
|
| | | 21 | ↵
|
24 | ) {
↵ | | 22 | void setGroups(List groups) {↵
|
25 | this.children = children | | 23 | this.groups = groups
|