Class LazyCloseable<T extends Closeable>

java.lang.Object
com.apple.foundationdb.record.lucene.codec.LazyCloseable<T>
Type Parameters:
T - the value opened
All Implemented Interfaces:
Closeable, AutoCloseable

public class LazyCloseable<T extends Closeable> extends Object implements Closeable
Similar to LazyOpener, but that is also Closeable.

Calling close() on this object will not call the opener, and only close the stored value if it was already opened.