Class SimpleLazyValue<T>

java.lang.Object
dev.getelements.elements.sdk.util.SimpleLazyValue<T>
Type Parameters:
T -
All Implemented Interfaces:
LazyValue<T>, Supplier<T>

public class SimpleLazyValue<T> extends Object implements LazyValue<T>
A value that lazily loads the first time it is fetched. This is not thread safe.
  • Constructor Details

    • SimpleLazyValue

      public SimpleLazyValue(Supplier<T> tSupplier)
  • Method Details