@Test public void getTest() { BuilderAndFutureSupplier<String> s = new BuilderAndFutureSupplier<>(new BuilderSupplier<String>() { @Override public Supplier<String> get() { return ()->"TEST"; } }, new CompletableFuture<>()); assertNotNull(s.get()); assertNotNull(s.getFuture()); assertNotNull(s.toString()); }
@Override public Supplier<? extends T> get() { return builderSupplier.get(); }
BuilderAndFutureSupplier implements BuilderFutureSupplier<T> { @Override public Supplier<? extends T> get() { return builderSupplier.get(); } }
BuilderAndFutureSupplier implements BuilderFutureSupplier<T> { @Override public Supplier<? extends T> get() { return builderSupplier.get(); } BuilderAndFutureSupplier(BuilderSupplier<T> builderSupplier, CompletableFuture<T> future); }
BuilderAndFutureSupplier implements BuilderFutureSupplier<T> { @Override public Supplier<? extends T> get() { return builderSupplier.get(); } BuilderAndFutureSupplier(BuilderSupplier<T> builderSupplier, CompletableFuture<T> future); @Override Supplier<? extends T> get(); @Override CompletableFuture<T> getFuture(); @Override String toString(); }
BuilderAndFutureSupplier implements BuilderFutureSupplier<T> { @Override public Supplier<? extends T> get() { return builderSupplier.get(); } BuilderAndFutureSupplier(BuilderSupplier<T> builderSupplier, CompletableFuture<T> future); @Override Supplier<? extends T> get(); @Override CompletableFuture<T> getFuture(); @Override String toString();  }