app/src/main/java/org/andstatus/app/util/TryUtils.java
/**
     * Creates a Try from nullable value.
     *
     * @param value success value if not null
     * @param <T>      Component type
     * @return {@code Success(value} if the value is not null,
     *   otherwise returns {@code Failure} holding {@link NoSuchElementException}
     */
Creates a Try from nullable value.
@param value success value if not null
@param       Component type
@return  Success(value if the value is not null,
otherwise returns  Failure holding  NoSuchElementException
Creates a Try from nullable value . @param value success value if not null @param Component type @return Success ( value if the value is not null otherwise returns Failure holding NoSuchElementException
public static <T> Try<T> ofNullable(T value) {
        return value == null
            ? Try.failure(VALUE_IS_NULL)
            : Try.success(value);
    }
public static < T > Try < T > ofNullable ( T value ) { return value == null ? Try . failure ( VALUE_IS_NULL ) : Try . success ( value ) ; }
Creates a Try from nullable value.
Creates a Try from nullable value .