public class XLazy<T,X extends Exception> extends Object implements XSupplier<T,X>
XSupplier 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 an exception.
Copyright © 2021 Andreas Kluge-Kaindl, Bremen (de). All rights reserved.