@Test void getResult() { Assertions.assertEquals("result", WITH_RESULT.getResult()); Assertions.assertNull(WITHOUT_RESULT.getResult()); }
public T getResult() { return result; }
Produce { public T getResult() { return result; } }
Produce { public T getResult() { return result; } private  Produce(T result, Supplier<E> error);  Produce(T result);  Produce(Supplier<E> error); }
Produce { public T getResult() { return result; } private  Produce(T result, Supplier<E> error);  Produce(T result);  Produce(Supplier<E> error); void ifPresent(Consumer<T> consumer); boolean hasResult(); boolean hasError(); @Nullable E getError(); T getResult(); }
Produce { public T getResult() { return result; } private  Produce(T result, Supplier<E> error);  Produce(T result);  Produce(Supplier<E> error); void ifPresent(Consumer<T> consumer); boolean hasResult(); boolean hasError(); @Nullable E getError(); T getResult();  }