Skip to content

Commit 57f981b

Browse files
committed
more javadoc comments.
1 parent a35624b commit 57f981b

16 files changed

+406
-20
lines changed

library/src/main/java/io/syslogic/github/api/model/QueryString.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,10 @@ public void setIsRaw(boolean value) {
211211
}
212212

213213

214-
/** It generates a dated query-string. */
214+
/**
215+
* It generates a dated query-string.
216+
* @return the generated query-string.
217+
*/
215218
@NonNull
216219
public String toQueryString() {
217220
Calendar calendar = Calendar.getInstance();
@@ -220,6 +223,10 @@ public String toQueryString() {
220223
return this.getSearch() + this.getDateFilter();
221224
}
222225

226+
/**
227+
* It generates the date-filter string.
228+
* @return the generated date-filter string.
229+
*/
223230
@NonNull
224231
public String getDateFilter() {
225232
if (this.getIsRaw() || this.getParameter() == 0) {return "";}

library/src/main/java/io/syslogic/github/api/model/RateLimits.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,35 @@ public class RateLimits {
1717
@SerializedName("rate")
1818
private RateLimit rates;
1919

20+
/**
21+
* Setter for {@link Resources}.
22+
* @param item the resources.
23+
*/
2024
public void setResources(@NonNull Resources item) {
2125
this.resources = item;
2226
}
2327

28+
/**
29+
* Setter for {@link RateLimit}.
30+
* @param item the rates.
31+
*/
2432
public void setRate(@NonNull RateLimit item) {
2533
this.rates = item;
2634
}
2735

36+
/**
37+
* Getter for {@link Resources}.
38+
* @return the resources.
39+
*/
2840
@NonNull
2941
public Resources getResources() {
3042
return this.resources;
3143
}
3244

45+
/**
46+
* Getter for {@link RateLimit}.
47+
* @return the rates.
48+
*/
3349
@NonNull
3450
public RateLimit getRate() {
3551
return this.rates;

library/src/main/java/io/syslogic/github/api/model/Repositories.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,46 @@ public class Repositories extends BaseModel {
2020
@SerializedName("total_count")
2121
private Long totalCount;
2222

23+
/**
24+
* Setter for repositories.
25+
* @param items the repositories.
26+
*/
2327
public void setRepositories(@NonNull ArrayList<Repository> items) {
2428
this.mItems = items;
2529
}
2630

31+
/**
32+
* Setter for totalCount.
33+
* @param value the total count of repositories.
34+
*/
2735
@SuppressWarnings("unused")
2836
public void setTotalCount(@NonNull Long value) {
2937
this.totalCount = value;
3038
}
3139

40+
/**
41+
* Getter for repositories.
42+
* @return the repositories.
43+
*/
3244
@NonNull
3345
public ArrayList<Repository> getRepositories() {
3446
return this.mItems;
3547
}
3648

49+
/**
50+
* Getter for totalCount.
51+
* @return the total count of repositories.
52+
*/
3753
@NonNull
3854
@Bindable
3955
public Long getTotalCount() {
4056
return this.totalCount;
4157
}
4258

59+
/**
60+
* Getter for pageCount.
61+
* @return the expected page count.
62+
*/
4363
@NonNull
4464
@Bindable
4565
public Long getPageCount() {

library/src/main/java/io/syslogic/github/api/model/Repository.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,12 @@ public class Repository extends BaseModel implements IContentProvider {
101101
/** Constructor */
102102
public Repository() {}
103103

104-
/** Constructor */
104+
/**
105+
* Constructor
106+
* @param id the id of the repository.
107+
* @param name the title of the repository.
108+
* @param url the URL of the repository.
109+
*/
105110
@Ignore
106111
public Repository(@NonNull Long id, @NonNull String name, @NonNull String url) {
107112
this.setId(id);

library/src/main/java/io/syslogic/github/api/model/RepositorySearch.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,46 @@ public class RepositorySearch extends BaseModel {
2020
@SerializedName("total_count")
2121
private Long totalCount;
2222

23+
/**
24+
* Setter for repositories.
25+
* @param items the repositories.
26+
*/
2327
public void setRepositories(@NonNull ArrayList<Repository> items) {
2428
this.mItems = items;
2529
}
2630

31+
/**
32+
* Setter for totalCount.
33+
* @param value the total count of repositories.
34+
*/
2735
@SuppressWarnings("unused")
2836
public void setTotalCount(@NonNull Long value) {
2937
this.totalCount = value;
3038
}
3139

40+
/**
41+
* Getter for repositories.
42+
* @return the results.
43+
*/
3244
@NonNull
3345
public ArrayList<Repository> getRepositories() {
3446
return this.mItems;
3547
}
3648

49+
/**
50+
* Getter for totalCount.
51+
* @return total count of results.
52+
*/
3753
@NonNull
3854
@Bindable
3955
public Long getTotalCount() {
4056
return this.totalCount;
4157
}
4258

59+
/**
60+
* Getter for pageCount.
61+
* @return the expected page count.
62+
*/
4363
@NonNull
4464
@Bindable
4565
public Long getPageCount() {

library/src/main/java/io/syslogic/github/api/model/WorkflowJob.java

Lines changed: 104 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,120 +54,222 @@ public class WorkflowJob {
5454
@SerializedName("steps")
5555
private ArrayList<WorkflowStep> steps;
5656

57-
/** Setters... */
57+
/**
58+
* Setter for id.
59+
* @param value the ID of the job.
60+
*/
5861
public void setId(@NonNull Long value) {
5962
this.id = value;
6063
}
6164

65+
/**
66+
* Setter for name.
67+
* @param value the name of the job.
68+
*/
6269
public void setName(@NonNull String value) {
6370
this.name = value;
6471
}
6572

73+
/**
74+
* Setter for status.
75+
* @param value the status of the job.
76+
*/
6677
public void setStatus(@NonNull String value) {
6778
this.status = value;
6879
}
6980

81+
/**
82+
* Setter for conclusion.
83+
* @param value the conclusion of the job.
84+
*/
7085
public void setConclusion(@NonNull String value) {
7186
this.conclusion = value;
7287
}
7388

89+
/**
90+
* Setter for runId.
91+
* @param value the runId of the job.
92+
*/
7493
public void setRunId(@NonNull Long value) {
7594
this.runId = value;
7695
}
7796

97+
/**
98+
* Setter for runUrl.
99+
* @param value the runUrl of the job.
100+
*/
78101
public void setRunUrl(@NonNull String value) {
79102
this.runUrl = value;
80103
}
81104

105+
/**
106+
* Setter for nodeId.
107+
* @param value the nodeId of the job.
108+
*/
82109
public void setNodeId(@NonNull String value) {
83110
this.nodeId = value;
84111
}
85112

113+
/**
114+
* Setter for headSha.
115+
* @param value the headSha of the job.
116+
*/
86117
public void setHeadSha(@NonNull String value) {
87118
this.headSha = value;
88119
}
89120

121+
/**
122+
* Setter for url.
123+
* @param value the url of the job.
124+
*/
90125
public void setUrl(@NonNull String value) {
91126
this.url = value;
92127
}
93128

129+
/**
130+
* Setter for htmlUrl.
131+
* @param value the htmlUrl of the job.
132+
*/
94133
public void setHtmlUrl(@NonNull String value) {
95134
this.htmlUrl = value;
96135
}
97136

137+
/**
138+
* Setter for startedAt.
139+
* @param value the startedAt of the job.
140+
*/
98141
public void setStartedAt(@NonNull Date value) {
99142
this.startedAt = value;
100143
}
101144

145+
/**
146+
* Setter for completedAt.
147+
* @param value the completedAt of the job.
148+
*/
102149
public void setCompletedAt(@NonNull Date value) {
103150
this.completedAt = value;
104151
}
105152

153+
/**
154+
* Setter for steps.
155+
* @param value the steps of the job.
156+
*/
106157
public void setSteps(@NonNull ArrayList<WorkflowStep> value) {
107158
this.steps = value;
108159
}
109160

110-
/** Getters... */
161+
/**
162+
* Getter for id.
163+
* @return the id of the job.
164+
*/
111165
@NonNull
112166
public Long getId() {
113167
return this.id;
114168
}
115169

170+
/**
171+
* Getter for name.
172+
* @return the name of the job.
173+
*/
116174
@NonNull
117175
public String getName() {
118176
return this.name;
119177
}
120178

179+
/**
180+
* Getter for status.
181+
* @return the status of the job.
182+
*/
121183
@NonNull
122184
public String getStatus() {
123185
return this.status;
124186
}
125187

188+
/**
189+
* Getter for conclusion.
190+
* @return the conclusion of the job.
191+
*/
126192
@NonNull
127193
public String getConclusion() {
128194
return this.conclusion;
129195
}
130196

197+
/**
198+
* Getter for runId.
199+
* @return the runId of the job.
200+
*/
131201
@NonNull
132202
public Long getRunId() {
133203
return this.runId;
134204
}
135205

206+
/**
207+
* Getter for runUrl.
208+
* @return the runUrl of the job.
209+
*/
136210
@NonNull
137211
public String getRunUrl() {
138212
return this.runUrl;
139213
}
140214

215+
/**
216+
* Getter for nodeId.
217+
* @return the nodeId of the job.
218+
*/
141219
@NonNull
142220
public String getNodeId() {
143221
return this.nodeId;
144222
}
145223

224+
/**
225+
* Getter for headSha.
226+
* @return the headSha of the job.
227+
*/
146228
@NonNull
147229
public String getHeadSha() {
148230
return this.headSha;
149231
}
150232

233+
/**
234+
* Getter for url.
235+
* @return the url of the job.
236+
*/
151237
@NonNull
152238
public String getUrl() {
153239
return this.url;
154240
}
155241

242+
/**
243+
* Getter for htmlUrl.
244+
* @return the htmlUrl of the job.
245+
*/
156246
@NonNull
157247
public String getHtmlUrl() {
158248
return this.htmlUrl;
159249
}
160250

251+
/**
252+
* Getter for startedAt.
253+
* @return the startedAt of the job.
254+
*/
161255
@NonNull
162256
public Date getStartedAt() {
163257
return this.startedAt;
164258
}
165259

260+
/**
261+
* Getter for completedAt.
262+
* @return the completedAt of the job.
263+
*/
166264
@NonNull
167265
public Date getCompletedAt() {
168266
return this.completedAt;
169267
}
170268

269+
/**
270+
* Getter for steps.
271+
* @return the steps of the job.
272+
*/
171273
@NonNull
172274
public ArrayList<WorkflowStep> getSteps() {
173275
return this.steps;

0 commit comments

Comments
 (0)