Skip to content

Commit c9c04f8

Browse files
committed
Finished javadoc update (no warnings)
1 parent 070ff53 commit c9c04f8

File tree

9 files changed

+44
-0
lines changed

9 files changed

+44
-0
lines changed

src/main/java/com/blockscore/common/BlockscoreErrorType.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ private BlockscoreErrorType(@NotNull final String value) {
1717

1818
/**
1919
* Returns if this status matches.
20+
* @param value Value to test
2021
* @return True or false.
2122
*/
2223
public boolean isEqualTo(final String value) {

src/main/java/com/blockscore/common/CorporationType.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ private CorporationType(@NotNull final String value) {
1717

1818
/**
1919
* Returns if this matches.
20+
* @param value Value to test
2021
* @return True or false.
2122
*/
2223
public boolean isEqualTo(final String value) {

src/main/java/com/blockscore/common/ValidationErrorType.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ private ValidationErrorType(@NotNull final String value) {
1717

1818
/**
1919
* Returns if this matches.
20+
* @param value Value to test
2021
* @return True or false.
2122
*/
2223
public boolean isEqualTo(final String value) {

src/main/java/com/blockscore/common/ValidityStatus.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ private ValidityStatus(@NotNull final String value) {
1717

1818
/**
1919
* Returns if this matches.
20+
* @param value Value to test.
2021
* @return True or false.
2122
*/
2223
public boolean isEqualTo(final String value) {

src/main/java/com/blockscore/models/AnsweredQuestion.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public AnsweredQuestion(int questionId, int answerId) {
2525
/**
2626
* Sets the question ID.
2727
* @param questionId Question ID
28+
* @return this
2829
*/
2930
public AnsweredQuestion setQuestionId(final int questionId) {
3031
mQuestionId = questionId;
@@ -34,6 +35,7 @@ public AnsweredQuestion setQuestionId(final int questionId) {
3435
/**
3536
* Sets the answer ID.
3637
* @param answerId ID associated with answer.
38+
* @return this
3739
*/
3840
public AnsweredQuestion setAnswerId(final int answerId) {
3941
mAnswerId = answerId;

src/main/java/com/blockscore/models/Company.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ public String getEntityName() {
9595
/**
9696
* Name of entity. This should exclude any legal endings like "Co" or "Inc" for best results.
9797
* @param entityName Name
98+
* @return this.
9899
*/
99100
@NotNull
100101
public Company setEntityName(@NotNull final String entityName) {
@@ -115,6 +116,7 @@ public String getTaxId() {
115116
* Sets the Tax ID for this entity. The tax ID should only include the digits of the ID with
116117
* no extraneous characters like dashes.
117118
* @param taxId Tax ID
119+
* @return this.
118120
*/
119121
@NotNull
120122
public Company setTaxId(@NotNull final String taxId) {
@@ -137,6 +139,7 @@ public Date getIncorpDate() {
137139
/**
138140
* Sets the incorporation date. Should be of the ISO date form (YYYY-MM-DD)
139141
* @param incorpDate Incorporation date.
142+
* @return this.
140143
*/
141144
@NotNull
142145
public Company setIncorpDate(@NotNull final Date incorpDate) {
@@ -159,6 +162,7 @@ public String getIncorpState() {
159162
/**
160163
* Sets the incorporation state. Can be either of ISO code form or the full length name of the state.
161164
* @param incorpState Incorporation state.
165+
* @return this.
162166
*/
163167
@NotNull
164168
public Company setIncorpState(@NotNull final String incorpState) {
@@ -178,6 +182,7 @@ public String getIncorpCountryCode() {
178182
/**
179183
* Sets the incorporation country code. Should be of the ISO alpha-2 code form.
180184
* @param incorpCountryCode Country code.
185+
* @return this.
181186
*/
182187
@NotNull
183188
public Company setIncorpCountryCode(@NotNull final String incorpCountryCode) {
@@ -198,6 +203,7 @@ public CorporationType getIncorpType() {
198203
/**
199204
* Sets the corporation type.
200205
* @param incorpType Corporation type.
206+
* @return this.
201207
*/
202208
public Company setIncorpType(@NotNull final CorporationType incorpType) {
203209
mIncorpType = incorpType.toString();
@@ -216,6 +222,7 @@ public String[] getDbas() {
216222
/**
217223
* Sets the "doing business as" names.
218224
* @param dbas Doing business as names.
225+
* @return this.
219226
*/
220227
public Company setDbas(@NotNull final String dbas) {
221228
mDbas = dbas;
@@ -235,6 +242,7 @@ public String getRegNumber() {
235242
/**
236243
* Sets the registration number for this entity.
237244
* @param regNumber Registration number.
245+
* @return this.
238246
*/
239247
public Company setRegNumber(@NotNull final String regNumber) {
240248
mRegNumber = regNumber;
@@ -253,6 +261,7 @@ public String getEmail() {
253261
/**
254262
* Sets the email for this entity.
255263
* @param email Email for the entity.
264+
* @return this.
256265
*/
257266
public Company setEmail(@NotNull final String email) {
258267
mEmail = email;
@@ -271,6 +280,7 @@ public String getURL() {
271280
/**
272281
* Sets the URL for this business.
273282
* @param url URL for the business
283+
* @return this.
274284
*/
275285
public Company setURL(@NotNull final String url) {
276286
mURL = url;
@@ -329,6 +339,7 @@ public Address getAddress() {
329339
/**
330340
* Sets the address of the entity.
331341
* @param address Address to use.
342+
* @return this.
332343
*/
333344
public Company setAddress(@NotNull Address address) {
334345
mAddress = address;

src/main/java/com/blockscore/models/WatchlistCandidate.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public String getNote() {
7878
* Sets an additional field which can be used for arbitrary storage. is typically used for
7979
* storing your internal identifiers for customer.
8080
* @param note Note to store.
81+
* @return this.
8182
*/
8283
@NotNull
8384
public WatchlistCandidate setNote(@Nullable final String note) {
@@ -97,6 +98,7 @@ public String getSSN() {
9798
/**
9899
* Can be either the last 4 digits of the US Social Security Number or the whole SSN.
99100
* @param ssn SSN to use.
101+
* @return this.
100102
*/
101103
@NotNull
102104
public WatchlistCandidate setSSN(@Nullable final String ssn) {
@@ -116,6 +118,7 @@ public String getPassport() {
116118
/**
117119
* Sets the passport number of the individual being verified. is only used for verifying non-US customers.
118120
* @param passport Passport data.
121+
* @return this.
119122
*/
120123
@NotNull
121124
public WatchlistCandidate setPassport(@Nullable final String passport) {
@@ -138,6 +141,7 @@ public Date getDateOfBirth() {
138141
/**
139142
* Set the date of birth of your candidate.
140143
* @param dateOfBirth Date of birth
144+
* @return this.
141145
*/
142146
@NotNull
143147
public WatchlistCandidate setDateOfBirth(@Nullable final Date dateOfBirth) {
@@ -160,6 +164,7 @@ public String getFirstName() {
160164
/**
161165
* Sets the legal first name of the customer.
162166
* @param firstName First name.
167+
* @return this.
163168
*/
164169
@NotNull
165170
public WatchlistCandidate setFirstName(@NotNull final String firstName) {
@@ -179,6 +184,7 @@ public String getMiddleName() {
179184
/**
180185
* Sets the legal middle name of the customer.
181186
* @param middleName Middle name.
187+
* @return this.
182188
*/
183189
@NotNull
184190
public WatchlistCandidate setMiddleName(@NotNull final String middleName) {
@@ -198,6 +204,7 @@ public String getLastName() {
198204
/**
199205
* Sets the legal last name.
200206
* @param lastName Last name.
207+
* @return this.
201208
*/
202209
@NotNull
203210
public WatchlistCandidate setLastName(@NotNull final String lastName) {
@@ -217,6 +224,7 @@ public String getStreet1() {
217224
/**
218225
* Sets the primary street address of the customer. This is automatically normalized.
219226
* @param street1 Street address.
227+
* @return this.
220228
*/
221229
@NotNull
222230
public WatchlistCandidate setStreet1(@NotNull final String street1) {
@@ -236,6 +244,7 @@ public String getStreet2() {
236244
/**
237245
* Sets the second address line typically used for apartment or suite numbers. This is automatically normalized.
238246
* @param street2 Street address (line 2)
247+
* @return this.
239248
*/
240249
@NotNull
241250
public WatchlistCandidate setStreet2(@NotNull final String street2) {
@@ -255,6 +264,7 @@ public String getCity() {
255264
/**
256265
* Sets the city name of the customer. This is automatically normalized.
257266
* @param city City name.
267+
* @return this.
258268
*/
259269
@NotNull
260270
public WatchlistCandidate setCity(@NotNull final String city) {
@@ -274,6 +284,7 @@ public String getState() {
274284
/**
275285
* Sets the state of the customer. Should be of the FIPS code form. For example California would be CA.
276286
* @param state State
287+
* @return this.
277288
*/
278289
@NotNull
279290
public WatchlistCandidate setState(@Nullable final String state) {
@@ -293,6 +304,7 @@ public String getPostalCode() {
293304
/**
294305
* Sets the postal code.
295306
* @param postalCode Postal code.
307+
* @return this.
296308
*/
297309
@NotNull
298310
public WatchlistCandidate setPostalCode(@Nullable final String postalCode) {
@@ -312,6 +324,7 @@ public String getCountryCode() {
312324
/**
313325
* Sets the country of the customer. Should be of the ISO code form.
314326
* @param countryCode Country code.
327+
* @return this.
315328
*/
316329
@NotNull
317330
public WatchlistCandidate setCountryCode(@Nullable final String countryCode) {

src/main/java/com/blockscore/net/BlockscoreApiClient.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public static void init(@NotNull final String apiKey) {
5959

6060
/**
6161
* Turns on/off logging. Should be done after init(), but before API client usage.
62+
* @param useVerboseLogs True to use verbose network logs.
6263
*/
6364
public static void useVerboseLogs(final boolean useVerboseLogs) {
6465
if (useVerboseLogs) {
@@ -198,6 +199,7 @@ public void scoreQuestionSet(@NotNull final String questionSetId
198199
* @see com.blockscore.net.BlockscoreRetrofitAPI#scoreQuestionSet(String, com.blockscore.models.request.AnswerRequest)
199200
* @param questionSetId Question set ID
200201
* @param answers Answers to questions
202+
* @return Observable containing the question set.
201203
*/
202204
@NotNull
203205
public Observable<QuestionSet> scoreQuestionSet(@NotNull final String questionSetId
@@ -345,6 +347,7 @@ public void updateWatchlistCandidate(@NotNull final String id, @NotNull final Wa
345347
* @see com.blockscore.net.BlockscoreRetrofitAPI#updateWatchlistCandidate(String, com.blockscore.models.WatchlistCandidate)
346348
* @param id ID for the candidate.
347349
* @param candidate Watchlist candidate to create.
350+
* @return Observable containing the candidate.
348351
*/
349352
@NotNull
350353
public Observable<WatchlistCandidate> updateWatchlistCandidate(@NotNull final String id
@@ -366,6 +369,7 @@ public void getWatchlistCandidate(@NotNull final String id, @NotNull final Callb
366369
* Gets a watchlist candidate.
367370
* @see com.blockscore.net.BlockscoreRetrofitAPI#getWatchlistCandidate(String)
368371
* @param id ID for the candidate.
372+
* @return Obsercable containing the candidate
369373
*/
370374
@NotNull
371375
public Observable<WatchlistCandidate> getWatchlistCandidate(@NotNull final String id) {
@@ -375,6 +379,7 @@ public Observable<WatchlistCandidate> getWatchlistCandidate(@NotNull final Strin
375379
/**
376380
* Lists the watchlist candidates.
377381
* @see BlockscoreRetrofitAPI#listWatchlistCandidate(retrofit.Callback)
382+
* @param callback Callback to use.
378383
*/
379384
public void listWatchlistCandidate(@NotNull final Callback<List<WatchlistCandidate>> callback) {
380385
mRestAdapter.listWatchlistCandidate(callback);
@@ -403,6 +408,7 @@ public void getWatchlistCandidateHistory(@NotNull final String id
403408
/**
404409
* Gets the watchlist candidate's history.
405410
* @param id ID for the candidate.
411+
* @return Observable containing a list of watchlist candidates.
406412
*/
407413
@NotNull
408414
public Observable<List<WatchlistCandidate>> getWatchlistCandidateHistory(@NotNull final String id) {
@@ -422,6 +428,7 @@ public void deleteWatchlistCandidate(@NotNull final String id
422428
/**
423429
* Deletes a watchlist candidate.
424430
* @param id ID for the candidate.
431+
* @return Observable containing the watchlist candidate.
425432
*/
426433
@NotNull
427434
public Observable<WatchlistCandidate> deleteWatchlistCandidate(@NotNull final String id) {
@@ -441,6 +448,7 @@ public void getWatchlistCandidateHits(@NotNull final String id
441448
/**
442449
* Gets the hits for a watchlist candidate.
443450
* @param id ID for the candidate.
451+
* @return Observable containing the list of watchlist hits.
444452
*/
445453
@NotNull
446454
public Observable<List<WatchlistHit>> getWatchlistCandidateHits(@NotNull final String id) {
@@ -460,6 +468,7 @@ public void searchWatchlists(@NotNull final SearchRequest searchRequest
460468
/**
461469
* Searches watchlists for a given candidate.
462470
* @param searchRequest Search request to complete
471+
* @return Observable containing the watch list search results.
463472
*/
464473
@NotNull
465474
public Observable<WatchlistSearchResults> searchWatchlists(@NotNull final SearchRequest searchRequest) {

src/main/java/com/blockscore/net/BlockscoreRetrofitAPI.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public interface BlockscoreRetrofitAPI {
5959
* took place along with all of its associated data. </p>
6060
* Thread: Any [Determined by settings on Observable]
6161
* @param id ID of verification to verify.
62+
* @return Observable containing a verification.
6263
*/
6364
@NotNull
6465
@GET("/verifications/{id}")
@@ -77,6 +78,7 @@ public interface BlockscoreRetrofitAPI {
7778
* <p>Gets a list of historical records for all verifications you have completed. Sorted
7879
* newest to oldest. </p>
7980
* Thread: Any [Determined by settings on Observable]
81+
* @return Observable containing a list of verifications.
8082
*/
8183
@NotNull
8284
@GET("/verifications")
@@ -100,6 +102,7 @@ void createQuestionSet(@NotNull @Body final QuestionSetRequest request
100102
* is presented in will be randomized. </p>
101103
* Thread: Any [Determined by settings on Observable]
102104
* @param request Question set request.
105+
* @return Observable containing a question set
103106
*/
104107
@NotNull
105108
@POST("/questions")
@@ -109,6 +112,7 @@ void createQuestionSet(@NotNull @Body final QuestionSetRequest request
109112
* <p>The scoring system will score it based on how many questions you submit, so if you would only like
110113
* to ask 3 questions, only submit the 3 questions which you would like scored. </p>
111114
* Thread: Asynchronous
115+
* @param questionSetId Question set ID.
112116
* @param answers Question set request.
113117
* @param callback Callback to use.
114118
*/
@@ -121,6 +125,7 @@ void scoreQuestionSet(@Path("id") @NotNull final String questionSetId
121125
* <p>The scoring system will score it based on how many questions you submit, so if you would only like
122126
* to ask 3 questions, only submit the 3 questions which you would like scored. </p>
123127
* Thread: Any [Determined by settings on Observable]
128+
* @param questionSetId Question set ID.
124129
* @param answers Question set request.
125130
* @return Observable containing the question set
126131
*/

0 commit comments

Comments
 (0)