Uses of Interface
ru.progrm_jarvis.javacommons.lazy.Lazy

Packages that use Lazy
Package
Description
Abstractions around lazy evaluation paradigm.
  • Uses of Lazy in ru.progrm_jarvis.javacommons.lazy

    Classes in ru.progrm_jarvis.javacommons.lazy that implement Lazy
    Modifier and Type
    Class
    Description
    static final class 
    Thread-safe (using double-checked locking) lazy getting its value from the specified value supplier.
    static final class 
    Thread-safe (using read-write-lock) weak lazy getting its value from the specified value supplier.
    static final class 
    Non-thread-safe lazy getting its value from the specified value supplier.
    static final class 
    Non-thread-safe (using double-checked locking) weak lazy getting its value from the specified value supplier.
    static class 
    Lazy which stores its values thread-locally.
    Modifier and Type
    Method
    Description
    static <T> Lazy<T>
    Lazy.create(@NonNull Supplier<? extends T> valueSupplier)
    Creates a new lazy creating its value using the given supplier.
    static <T> Lazy<T>
    Lazy.createThreadLocal(@NonNull Supplier<? extends T> valueSupplier)
    Creates a new thread-local lazy creating its value using the given supplier.
    static <T> Lazy<T>
    Lazy.createThreadSafe(@NonNull Supplier<? extends T> valueSupplier)
    Creates a new thread-safe lazy creating its value using the given supplier.
    static <T> Lazy<@NotNull T>
    Lazy.createWeak(@NonNull Supplier<@NotNull ? extends T> valueSupplier)
    Creates a new weak lazy creating its value using the given supplier.
    static <T> Lazy<T>
    Lazy.createWeakThreadSafe(@NonNull Supplier<? extends T> valueSupplier)
    Creates a new weak thread-safe lazy creating its value using the given supplier.