idea formatting

This commit is contained in:
Arseniy Borisov 2017-07-24 12:28:57 +03:00
parent 2013a7ad56
commit 4b0fd5945f
8 changed files with 10 additions and 7 deletions

View File

@ -26,7 +26,7 @@ dependencies {
compile 'com.android.support:multidex:1.0.1'
compile 'io.reactivex.rxjava2:rxandroid:2.0.1'
compile 'io.reactivex.rxjava2:rxjava:2.1.1'
compile 'io.reactivex.rxjava2:rxjava:2.1.2'
provided 'com.android.support:appcompat-v7:25.4.0'
provided 'com.android.support:recyclerview-v7:25.4.0'

View File

@ -59,7 +59,7 @@ public final class CalendarUtils {
* @param calendarItems List of {@link CalendarItem} where need to find specific element;
* @param position Position of adapter;
* @return Position of Header that respond to requested position.
* Returns null if Header or related CalendarItem was not found for specified position.
* Returns null if Header or related CalendarItem was not found for specified position.
*/
@Nullable
public static Integer findPositionOfSelectedMonth(@NonNull final List<CalendarItem> calendarItems, final long position) {
@ -76,7 +76,7 @@ public final class CalendarUtils {
* @param calendarItems List of {@link CalendarItem} where need to find specific element;
* @param date Requested date in milliseconds.
* @return Position of Calendar cell that that has specific date.
* Returns null if CalendarItem was not found for specified position.
* Returns null if CalendarItem was not found for specified position.
*/
@Nullable
public static Integer findPositionByDate(@NonNull final List<CalendarItem> calendarItems, final long date) {

View File

@ -70,7 +70,7 @@ public abstract class JsonResponseBodyConverter<T> implements Converter<Response
validateCollection((Collection) result);
}
if (result instanceof Map) {
validateCollection(((Map)result).values());
validateCollection(((Map) result).values());
}
return result;

View File

@ -59,6 +59,7 @@ public class ValidationState implements Serializable {
/**
* Returns unique code of the {@link ValidationState}.
*
* @return code or the ValidationState.
*/
public int getCode() {
@ -67,6 +68,7 @@ public class ValidationState implements Serializable {
/**
* Don't forget to override this method!
*
* @param object that you want to compare.
* @return true if objects equals and false otherwise.
*/

View File

@ -38,6 +38,7 @@ public interface ViewWithError {
* Shows error
* Pass here error state.
* It is not correct to pass here {@link ValidationState#VALID} or {@link ValidationState#INITIAL}
*
* @param validationState error state. Can be other than {@link ValidationState} if you have successor of base {@link ValidationState}.
*/
void showError(@NonNull final ValidationState validationState);

View File

@ -142,7 +142,7 @@ public abstract class EditTextValidator<TModel extends Serializable> extends Val
*
* @param text - input text.
* @return pair with final {@link ValidationState} that is always not null and a model that we get after converting the text.
* Model can be null if validation fails on primary or final checks.
* Model can be null if validation fails on primary or final checks.
*/
@NonNull
@Override

View File

@ -36,7 +36,7 @@ public class SameTypeValidator<TModel extends Serializable> extends Validator<TM
*
* @param wrapperModel - not null value that should be validated.
* @return pair with final {@link ValidationState} that is always not null and a model that we get after converting the {@link TModel}.
* Model can be null if validation fails.
* Model can be null if validation fails.
*/
@NonNull
@Override

View File

@ -99,7 +99,7 @@ public abstract class Validator<TWrapperModel extends Serializable, TModel exten
*
* @param wrapperModel - not null value that should be validated.
* @return pair with final {@link ValidationState} that is always not null and a model that we get after converting the {@link TWrapperModel}.
* Model can be null if validation fails.
* Model can be null if validation fails.
*/
@NonNull
public abstract Observable<HalfNullablePair<ValidationState, TModel>> fullValidateAndGetModel(@NonNull final TWrapperModel wrapperModel);