Uses of Class
io.vavr.Lazy

Packages that use Lazy
Package
Description
Beside API the io.vavr package contains core types like (Checked)Functions and Tuples.
Purely functional collections based on Traversable.
  • Uses of Lazy in io.vavr

    Methods in io.vavr that return Lazy
    Modifier and Type
    Method
    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.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>>.
    Methods in io.vavr with parameters of type Lazy
    Modifier and Type
    Method
    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.
    Method parameters in io.vavr with type arguments of type Lazy
    Modifier and Type
    Method
    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.
  • Uses of Lazy in io.vavr.collection

    Fields in io.vavr.collection declared as Lazy
    Modifier and Type
    Field
    Description
    private static final Lazy<BigDecimal>
    IteratorModule.BigDecimalHelper.INFINITY_DISTANCE
     
    (package private) final Lazy<Stream<T>>
    Stream.Cons.tail