Class Lazy<T>

java.lang.Object
software.amazon.awssdk.utils.Lazy<T>
All Implemented Interfaces:
AutoCloseable, SdkAutoCloseable

public class Lazy<T> extends Object implements SdkAutoCloseable
A class that lazily constructs a value the first time getValue() is invoked. This should be close()d if the initializer returns value that needs to be AutoCloseable.close()d.
  • Constructor Details

    • Lazy

      public Lazy(Supplier<T> initializer)
  • Method Details