class Result {

  @NonNull
  public <U, V> Result<V> ifSucceededMerge(@NonNull final U mergeValue,
      @NonNull final Merger<? super T, ? super U, V> merger) {
    if (value != null) {
      return success(merger.merge(value, mergeValue));
    }
    return sameFailure();
  }

    Result(@Nullable final T value, @Nullable final Throwable failure);

}