@@ -0,0 +1,1146 @@
+package com.commit451.reptar;%0A%0Aimport android.support.annotation.Nullable;%0A%0A/**%0A * Since %7B@code null%7D is not a valid result to emit, there may still be times when we want to pass%0A * either a value, or nothing (such as if we are checking if the user is in a datastore). This class%0A * allows you to pass a result, or null, if there is no result.%0A * @see %3Ca href=https://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#nulls%3Ehttps://github.com/ReactiveX/RxJava/wiki/What's-different-in-2.0#nulls%3C/a%3E%0A */%0Apublic class Result%3CT%3E %7B%0A%0A    private T value;%0A%0A    /**%0A     * Construct a result, which can be emitted%0A     * @param value the value, or null to give a null result%0A     */%0A    public Result(@Nullable T value) %7B%0A        this.value = value;%0A    %7D%0A%0A    /**%0A     * Check to see if a value exists%0A     * @return true if a value exists, false if not%0A     */%0A    public boolean hasValue() %7B%0A        return value != null;%0A    %7D%0A%0A    /**%0A     * Get the value within the result. Typically, you should check %7B@link #hasValue()%7D first%0A     * @return the value, or null if there is none%0A     */%0A    public T value() %7B%0A        return value;%0A    %7D%0A%7D%0A

Add Result as a way around emitting null