1 /*
2  * Copyright 2017 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package a.b;
18 
19 import android.os.Bundle;
20 import androidx.navigation.NavDirections;
21 import java.lang.String;
22 
23 public class MainFragmentDirections {
previous(String arg1, String arg2)24     public static Previous previous(String arg1, String arg2) {
25         return new Previous(arg1, arg2);
26     }
27 
next(String main)28     public static Next next(String main) {
29         return new Next(main);
30     }
31 
32     public static class Previous implements NavDirections {
33         private String arg1;
34 
35         private String arg2;
36 
Previous(String arg1, String arg2)37         public Previous(String arg1, String arg2) {
38             this.arg1 = arg1;
39             this.arg2 = arg2;
40         }
41 
setArg1(String arg1)42         public Previous setArg1(String arg1) {
43             this.arg1 = arg1;
44             return this;
45         }
46 
setArg2(String arg2)47         public Previous setArg2(String arg2) {
48             this.arg2 = arg2;
49             return this;
50         }
51 
getArguments()52         public Bundle getArguments() {
53             Bundle __outBundle = new Bundle();
54             __outBundle.putString("arg1", this.arg1);
55             __outBundle.putString("arg2", this.arg2);
56             return __outBundle;
57         }
58 
getActionId()59         public int getActionId() {
60             return a.b.R.id.previous;
61         }
62     }
63 
64     public static class Next implements NavDirections {
65         private String main;
66 
67         private String optional = "bla";
68 
Next(String main)69         public Next(String main) {
70             this.main = main;
71         }
72 
setMain(String main)73         public Next setMain(String main) {
74             this.main = main;
75             return this;
76         }
77 
setOptional(String optional)78         public Next setOptional(String optional) {
79             this.optional = optional;
80             return this;
81         }
82 
getArguments()83         public Bundle getArguments() {
84             Bundle __outBundle = new Bundle();
85             __outBundle.putString("main", this.main);
86             __outBundle.putString("optional", this.optional);
87             return __outBundle;
88         }
89 
getActionId()90         public int getActionId() {
91             return a.b.R.id.next;
92         }
93     }
94 }