/** * Returns a new Lazy that will consume the given supplier in case the current one does not yield in a result. * * @param supplier must not be {@literal null}. * @return */ public Lazy<T> or(Supplier<? extends T> supplier) { Assert.notNull(supplier, "Supplier must not be null!"); return Lazy.of(() -> orElseGet(supplier)); }