T
- the lazy initializing objectpublic class CloseableSupplier<T extends Closeable> extends Object implements java.util.function.Supplier<T>, Closeable
Constructor and Description |
---|
CloseableSupplier(java.util.function.Supplier<T> delegate) |
public CloseableSupplier(java.util.function.Supplier<T> delegate)
delegate
- the underlying supplierpublic T get()
get
in interface java.util.function.Supplier<T extends Closeable>
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
Copyright © 2023. All Rights Reserved.