| Package | Description |
|---|---|
| io.vavr |
Beside
API the io.vavr package contains core types like (Checked)Functions and Tuples. |
| Modifier and Type | Method and Description |
|---|---|
static <T> Lazy<T> |
API.Lazy(Supplier<? extends T> supplier)
Alias for
of(Supplier) |
<U> Lazy<U> |
Lazy.map(Function<? super T,? extends U> mapper) |
static <T> Lazy<T> |
Lazy.narrow(Lazy<? extends T> lazy)
Narrows a widened
Lazy<? extends T> to Lazy<T>
by performing a type-safe cast. |
static <T> Lazy<T> |
Lazy.of(Supplier<? extends T> supplier)
Creates a
Lazy that requests its value from a given Supplier. |
Lazy<T> |
Lazy.peek(Consumer<? super T> action) |
static <T> Lazy<Seq<T>> |
Lazy.sequence(Iterable<? extends Lazy<? extends T>> values)
Reduces many
Lazy values into a single Lazy by transforming an
Iterable<Lazy<? extends T>> into a Lazy<Seq<T>>. |
| Modifier and Type | Method and Description |
|---|---|
static <T> Lazy<T> |
Lazy.narrow(Lazy<? extends T> lazy)
Narrows a widened
Lazy<? extends T> to Lazy<T>
by performing a type-safe cast. |
| Modifier and Type | Method and Description |
|---|---|
static <T> Lazy<Seq<T>> |
Lazy.sequence(Iterable<? extends Lazy<? extends T>> values)
Reduces many
Lazy values into a single Lazy by transforming an
Iterable<Lazy<? extends T>> into a Lazy<Seq<T>>. |
<U> U |
Lazy.transform(Function<? super Lazy<T>,? extends U> f)
Transforms this
Lazy. |
Copyright © 2021. All Rights Reserved.