public class Lazy<T> extends Object implements Supplier<T>
Supplier that provides a virtually fixed value.
This value is only actually determined when it is accessed for the first time.
This implementation ensures that the originally defined initialization code
is called at most once, even if there is concurrent access from multiple threads, unless the
initialization attempt causes a RuntimeException.
Copyright © 2021 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.