Package htsjdk.samtools.util
Class Lazy<T>
java.lang.Object
htsjdk.samtools.util.Lazy<T>
Simple utility for building an on-demand (lazy) object-initializer.
Works by accepting an initializer describing how to build the on-demand object, which is only called once and only after the first
invocation of
get()
(or it may not be called at all).-
Constructor Details
-
Lazy
-
-
Method Details
-
get
Returns the instance associated with thisLazy
, initializing it if necessary. -
isInitialized
public boolean isInitialized()
-
Supplier
instead