1 | public class Parent {
↵ | | 1 | public class Search {↵
|
2 | private String name;
↵ | | 2 | private String searchString;↵
|
3 | private Set children = new HashSet();↵ | | 3 | private Set searchResults = new HashSet();↵
|
|
4 | public Parent() {↵ | | |
|
5 | }↵ | | |
|
6 |
↵ | | |
|
| | | 4 | ↵
|
| | | 5 | Search() {}↵
|
| | | 6 | ↵
|
7 | public Parent(String name) {
↵ | | 7 | public Search(String string) {↵
|
8 | this.name = name;↵ | | 8 | ↵
|
9 | }↵ | | |
|
10 |
↵ | | 9 | searchString = string;↵
|
| | | 10 | }↵
|
| | | 11 | ↵
|
11 | public String getName() {
↵ | | 12 | public Set getSearchResults() {↵
|
12 | return name;↵ | | 13 | return ↵
|
13 | }↵ | | |
|
14 |
↵ | | 14 | searchResults;↵
|
| | | 15 | }↵
|
15 | public void setName(String name) {
↵ | | 16 | public void setSearchResults(Set searchResults) {↵
|
16 | this.name = name;↵ | | 17 | this.↵
|
17 | }↵ | | |
|
|
18 | public Set getChildren↵ | | 18 | searchResults = searchResults;↵
|
| | | 19 | }↵
|
19 | () {
↵ | | 20 | public String getSearchString() {↵
|
20 | return children;↵ | | 21 | return ↵
|
21 | }↵ | | |
|
22 |
↵ | | 22 | searchString;↵
|
| | | 23 | }↵
|
23 | public void setChildren(Set children) {
↵ | | 24 | public void setSearchString(String searchString) {↵
|
24 | this.children = children | | 25 | this.searchString = searchString
|